Database Tuning (MOSC)

MOSC Banner

Populating a surrogate key in parallel inserts

edited Nov 21, 2011 1:34AM in Database Tuning (MOSC) 13 commentsAnswered
Hello all

We have a number of large tables that we want to load in parallel. During load, a surrogate key is to be populated from a sequence. In serial mode we do bulk fetch and bulk insert via plsql, and there we maintain a cache of sequence numbers to fill the key (via a function call that manages the sequence-number-cache). Now we want to load in parallel using insert ... select. Just referencing sequence.nextval once for each row is not a good performer. Triggers do not perform all that well either. So actually, I would like to still use the function-based

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center