<bdo id='VEMAV'></bdo><ul id='VEMAV'></ul>

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

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

      <tfoot id='VEMAV'></tfoot>
      <legend id='VEMAV'><style id='VEMAV'><dir id='VEMAV'><q id='VEMAV'></q></dir></style></legend>

      在空表上创建索引后插入数据还是在oracle上插入数据后创建唯一索引?

      时间:2023-10-25

    2. <small id='UqFaR'></small><noframes id='UqFaR'>

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

                本文介绍了在空表上创建索引后插入数据还是在oracle上插入数据后创建唯一索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                哪个选项更好更快?在空表上创建索引后插入数据或在插入数据后创建唯一索引.我有大约 10M 行要插入.哪个选项会更好,以便我可以减少停机时间.

                Which option is better and faster? Insertion of data after creating index on empty table or creating unique index after inserting data. I have around 10M rows to insert. Which option would be better so that I could have least downtime.

                推荐答案

                先插入数据,然后创建索引.

                Insert your data first, then create your index.

                每次执行 UPDATE、INSERT 或 DELETE 操作时,表上的任何索引也必须更新.因此,如果您先创建索引,然后插入 10M 行,则索引也必须更新 10M 次(除非您正在执行批量操作).

                Every time you do an UPDATE, INSERT or DELETE operation, any indexes on the table have to be updated as well. So if you create the index first, and then insert 10M rows, the index will have to be updated 10M times as well (unless you're doing bulk operations).

                这篇关于在空表上创建索引后插入数据还是在oracle上插入数据后创建唯一索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:在空表中执行缓慢的查询.(删除大量插入后) 下一篇:如何在mysql查询中高效使用索引

                相关文章

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

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

                      <bdo id='QykPJ'></bdo><ul id='QykPJ'></ul>
                    <legend id='QykPJ'><style id='QykPJ'><dir id='QykPJ'><q id='QykPJ'></q></dir></style></legend>