开发者

Behaviour of INDEX in RDBMS

开发者 https://www.devze.com 2023-03-15 07:16 出处:网络
Q1 => Does an INDEX get purged and created on each insert, update, delete? Q2 => If yes, how to use an index in a table where there wi开发者_如何学Goll be 60% read, 30% insert, 10% delete? The indexes

Q1 => Does an INDEX get purged and created on each insert, update, delete?

Q2 => If yes, how to use an index in a table where there wi开发者_如何学Goll be 60% read, 30% insert, 10% delete?


The indexes are "maintained" for each insert/update/delete. That means the affected records of the affected indexes will be inserted/deleted.

http://use-the-index-luke.com/


  1. No! An index is updated on each operation, but it is not rebuilt on each operation (that would have a completely prohibitive cost).

  2. Moot since the answer to Q1 is No.

0

精彩评论

暂无评论...
验证码 换一张
取 消