bulk insert with or without index

后端 未结 3 2185
灰色年华
灰色年华 2021-02-20 16:58

In a comment I read

Just as a side note, it\'s sometimes faster to drop the indices of your table and recreate them after the bulk insert operation.

<
3条回答
  •  感情败类
    2021-02-20 17:07

    One thing you should consider when dropping and recreating indexes is that it should only be done on automated processes that run during the low volumne periods of database use. While the index is dropped it can't be used for other queries that other users might be riunning at the same time. If you do this during production hours ,your users will probably start complaining of timeouts.

提交回复
热议问题