<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上插入数据后创建唯一索引?

      Insertion of data after creating index on empty table or creating unique index after inserting data on oracle?(在空表上创建索引后插入数据还是在oracle上插入数据后创建唯一索引?)

    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上插入数据后创建唯一索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Accessing another user#39;s table within an Oracle Stored Procedure(在 Oracle 存储过程中访问另一个用户的表)
                Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32)(超出最大存储过程、函数、触发器或视图嵌套级别(限制 32))
                How to View Oracle Stored Procedure using SQLPlus?(如何使用 SQLPlus 查看 Oracle 存储过程?)
                How to debug stored procedure in VS 2015?(如何在 VS 2015 中调试存储过程?)
                How to Pass Java List of Objects to Oracle Stored Procedure Using MyBatis?(如何使用 MyBatis 将 Java 对象列表传递给 Oracle 存储过程?)
                Set the variable result, from query(设置变量结果,来自查询)

              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>
                            <tbody id='QykPJ'></tbody>