Grails sequence generation for Oracle 11g

前端 未结 2 1242
一个人的身影
一个人的身影 2020-12-17 02:46

I realize this is more of a hibernate question than Grails. In a load balanced (2 nodes) environment I see that the ids of my objects are jumping around quite a bit. Even wi

2条回答
  •  借酒劲吻你
    2020-12-17 03:46

    I have since went to the database and modified the Sequence with the following DDL:

    ALTER SEQUENCE MY_SEQ NOCACHE;
    

    I think this is the best solution for this issue. Does anyone see potential problems with this approach?

    Thanks all!

提交回复
热议问题