OpenJPA
  1. OpenJPA
  2. OPENJPA-1376

@SequenceGenerator allocationSize incorrect implementation

    Details

      Description

      OpenJpa use allocationSize parameter on NativeJDBCSeq to set the sequence cache value.

      But one "JSR 220: Enterprise JavaBeansTM,Version 3.0" , the allocationSize is : "The amount to increment by when allocating sequence
      numbers from the sequence."

      Allocating is used to limit the number of access to the sequence or table not to set the sequence cache value !

      If allocationSize=50, the sequence need to be call one time on each 50 call on AbstractJDBCSeq.next().

      1 call on AbstractJDBCSeq.next(). call the sequence or table
      2 call : return previous value + 1;
      3 call : return previous value + 2;
      ...
      51 call :re-call the sequence
      52 return previous value + 1
      ...

        Issue Links

          Activity

          Heath Thomann made changes -
          Link This issue is related to OPENJPA-2450 [ OPENJPA-2450 ]
          Kevin Sutter made changes -
          Link This issue relates to OPENJPA-2196 [ OPENJPA-2196 ]
          Albert Lee made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Albert Lee made changes -
          Link This issue relates to OPENJPA-2069 [ OPENJPA-2069 ]
          Milosz Tylenda made changes -
          Fix Version/s 1.2.3 [ 12314517 ]
          Fix Version/s 1.3.0 [ 12313326 ]
          Fix Version/s 2.0.2 [ 12315257 ]
          Fix Version/s 2.1.2 [ 12317142 ]
          Milosz Tylenda made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Milosz Tylenda made changes -
          Affects Version/s 2.1.0 [ 12314542 ]
          Milosz Tylenda made changes -
          Summary @GeneratedValue allocationSize incorrect implementation @SequenceGenerator allocationSize incorrect implementation
          Fix Version/s 2.2.0 [ 12315910 ]
          Priority Critical [ 2 ] Major [ 3 ]
          Component/s performance [ 12312974 ]
          Milosz Tylenda made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Milosz Tylenda made changes -
          Component/s competitive [ 12313757 ]
          Milosz Tylenda made changes -
          Assignee Milosz Tylenda [ milosz ]
          Palmer Cox made changes -
          Attachment cache-native-seq-values.diff [ 12470539 ]
          Yves made changes -
          Field Original Value New Value
          Original Estimate 8m [ 480 ] 8h [ 28800 ]
          Remaining Estimate 8m [ 480 ] 8h [ 28800 ]
          Yves created issue -

            People

            • Assignee:
              Milosz Tylenda
              Reporter:
              Yves
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 8h
                8h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development