Try increasing the cache size of the sequence
A reader, May 13, 2020 - 6:40 am UTC
.. have seen cases where sequence contention can also slow it down owing to frequent inserts.
Cheers!
May 13, 2020 - 9:46 am UTC
Could be - getting the SQL trace would confirm/deny this.
Martin ROSE, July 17, 2020 - 3:48 pm UTC
> Table has 2 columns. 1st column is varchar2(130) is primary key. This is column is used in all searches.
> 2nd column is number and gets number generated from sequence from trigger on this IOT table. 2nd column also has index. ( we never search on this column).
If the 2nd column is never searched on, why have the index? Remove it & your INSERTs will be faster.
Also, don't derive the seq. no. using a trigger. Reference it in the INSERT statement instead. Row-level triggers slow down everything done in bulk.
But my biggest question is what purpose does the 2nd column even serve? You're essentially just storing a random number against your PK.
In fact, what is the point of the entire table ?!