I've changed it but still in Oracle tracle I see many:
PARSING IN CURSOR #2 len=43 dep=0 uid=21 oct=3 lid=21 tim=1072630711581466 hv=2476267719 ad='4cc310'
select hibernate_sequence.nextval from dual
END OF STMT
PARSE #2:c=0,e=68,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=1072630711581459
EXEC #2:c=0,e=50,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=1072630711581629
FETCH #2:c=0,e=89,p=0,cr=3,cu=0,mis=0,r=1,dep=0,og=4,tim=1072630711583201
STAT #2 id=1 cnt=1 pid=0 pos=1 obj=0 op='SEQUENCE '
STAT #2 id=2 cnt=1 pid=1 pos=1 obj=222 op='TABLE ACCESS FULL DUAL '
In our internal solution we select nextval only one for 10000 not for each. I think it is good idea to change a "nativ" id generator for Oracle to achive hyper speed of inserting.
|