oracle - Is okay to create indexes on a table while insertion -
oracle - Is okay to create indexes on a table while insertion -
is okay create index on table while , lets when there tasks creates new rows table @ same time?? there locking issues???
ex: feedback table --> creating index on (name, feedbackrule) while there inserts happening simultaneously , bad?? if what.
i'm assuming, oracle not utilize index when inserts happening, later used.
normally, creating index requires locking table, dml operations block; , if there active transactions on table when initiate index creation, you'd error "ora-00054: resource busy , acquire nowait specified or timeout expired".
if table small, may not much of issue - transactions blocked few moments. if big bad thought seek creating index while table in use.
however, if using enterprise edition, can add together online
keyword create index
statement, allow transactions proceed against table while index building. may still cause slower performance.
oracle insert indexing
Comments
Post a Comment