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

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

                相关文档推荐

                ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                SQL query to group by day(按天分组的 SQL 查询)
                What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                Include missing months in Group By query(在 Group By 查询中包含缺失的月份)

              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>