<bdo id='tXumh'></bdo><ul id='tXumh'></ul>
  • <tfoot id='tXumh'></tfoot>
      <i id='tXumh'><tr id='tXumh'><dt id='tXumh'><q id='tXumh'><span id='tXumh'><b id='tXumh'><form id='tXumh'><ins id='tXumh'></ins><ul id='tXumh'></ul><sub id='tXumh'></sub></form><legend id='tXumh'></legend><bdo id='tXumh'><pre id='tXumh'><center id='tXumh'></center></pre></bdo></b><th id='tXumh'></th></span></q></dt></tr></i><div id='tXumh'><tfoot id='tXumh'></tfoot><dl id='tXumh'><fieldset id='tXumh'></fieldset></dl></div>
    1. <legend id='tXumh'><style id='tXumh'><dir id='tXumh'><q id='tXumh'></q></dir></style></legend>

      <small id='tXumh'></small><noframes id='tXumh'>

        MyISAM 与 InnoDB

        时间:2023-08-20
          <tbody id='3IwS3'></tbody>

          • <legend id='3IwS3'><style id='3IwS3'><dir id='3IwS3'><q id='3IwS3'></q></dir></style></legend>
            • <bdo id='3IwS3'></bdo><ul id='3IwS3'></ul>

                <i id='3IwS3'><tr id='3IwS3'><dt id='3IwS3'><q id='3IwS3'><span id='3IwS3'><b id='3IwS3'><form id='3IwS3'><ins id='3IwS3'></ins><ul id='3IwS3'></ul><sub id='3IwS3'></sub></form><legend id='3IwS3'></legend><bdo id='3IwS3'><pre id='3IwS3'><center id='3IwS3'></center></pre></bdo></b><th id='3IwS3'></th></span></q></dt></tr></i><div id='3IwS3'><tfoot id='3IwS3'></tfoot><dl id='3IwS3'><fieldset id='3IwS3'></fieldset></dl></div>
                  <tfoot id='3IwS3'></tfoot>

                  <small id='3IwS3'></small><noframes id='3IwS3'>

                  本文介绍了MyISAM 与 InnoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在处理一个涉及大量数据库写入的项目,我会说(70% 插入和 30% 读取).这个比率还包括我认为是一次读取和一次写入的更新.读取可能很脏(例如,我在读取时不需要 100% 准确的信息).
                  有问题的任务将每小时处理超过 100 万次数据库事务.

                  我在网上阅读了很多关于 MyISAM 和 InnoDB 之间差异的内容,对于我将用于此任务的特定数据库/表,MyISAM 似乎是我的明显选择.从我似乎正在阅读的内容来看,如果需要事务,InnoDB 是很好的,因为支持行级锁定.

                  有人对这种类型的负载(或更高)有任何经验吗?MyISAM 是要走的路吗?

                  解决方案

                  我有简要的 在表格中讨论了这个问题,以便您可以决定是使用 InnoDB 还是 MyISAM.

                  以下是您应该在哪种情况下使用哪个数据库存储引擎的小概述:

                  <前>MyISAM InnoDB----------------------------------------------------------------需要全文检索 是 5.6.4----------------------------------------------------------------需要交易 是----------------------------------------------------------------频繁选择查询 是----------------------------------------------------------------频繁插入、更新、删除 是----------------------------------------------------------------行锁定(单表多处理) 是----------------------------------------------------------------关系基础设计 是

                  总结

                  • 几乎在所有情况下,InnoDB 都是最好的选择
                  • 但是,经常阅读,几乎不写,使用MyISAM
                  • 在 MySQL <= 5.5 中进行全文搜索,使用 MyISAM

                  I'm working on a projects which involves a lot of database writes, I'd say (70% inserts and 30% reads). This ratio would also include updates which I consider to be one read and one write. The reads can be dirty (e.g. I don't need 100% accurate information at the time of read).
                  The task in question will be doing over 1 million database transactions an hour.

                  I've read a bunch of stuff on the web about the differences between MyISAM and InnoDB, and MyISAM seems like the obvious choice to me for the particular database/tables that I'll be using for this task. From what I seem to be reading, InnoDB is good if transactions are needed since row level locking is supported.

                  Does anybody have any experience with this type of load (or higher)? Is MyISAM the way to go?

                  解决方案

                  I have briefly discussed this question in a table so you can conclude whether to go with InnoDB or MyISAM.

                  Here is a small overview of which db storage engine you should use in which situation:

                                                                   MyISAM   InnoDB
                  ----------------------------------------------------------------
                  Required full-text search                        Yes      5.6.4
                  ----------------------------------------------------------------
                  Require transactions                                      Yes
                  ----------------------------------------------------------------
                  Frequent select queries                          Yes      
                  ----------------------------------------------------------------
                  Frequent insert, update, delete                           Yes
                  ----------------------------------------------------------------
                  Row locking (multi processing on single table)            Yes
                  ----------------------------------------------------------------
                  Relational base design                                    Yes
                  

                  Summary

                  • In almost all circumstances, InnoDB is the best way to go
                  • But, frequent reading, almost no writing, use MyISAM
                  • Full-text search in MySQL <= 5.5, use MyISAM

                  这篇关于MyISAM 与 InnoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:仅当值不存在时才返回行 下一篇:从日期范围生成天数

                  相关文章

                  最新文章

                1. <i id='C8fMu'><tr id='C8fMu'><dt id='C8fMu'><q id='C8fMu'><span id='C8fMu'><b id='C8fMu'><form id='C8fMu'><ins id='C8fMu'></ins><ul id='C8fMu'></ul><sub id='C8fMu'></sub></form><legend id='C8fMu'></legend><bdo id='C8fMu'><pre id='C8fMu'><center id='C8fMu'></center></pre></bdo></b><th id='C8fMu'></th></span></q></dt></tr></i><div id='C8fMu'><tfoot id='C8fMu'></tfoot><dl id='C8fMu'><fieldset id='C8fMu'></fieldset></dl></div>
                  <legend id='C8fMu'><style id='C8fMu'><dir id='C8fMu'><q id='C8fMu'></q></dir></style></legend>

                2. <tfoot id='C8fMu'></tfoot>
                    <bdo id='C8fMu'></bdo><ul id='C8fMu'></ul>

                    <small id='C8fMu'></small><noframes id='C8fMu'>