Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-1960

Use DB auto-increment for incrementing table IDs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0, 2.1.0
    • None
    • Sentry

    Description

      We noticed that the way package.jdo is configured, it uses DataNucleus sequence table to maintain keys for table IDs. For new tables we should use datastore-based identity which is much more efficient.

      For example, setting

      <datastore-identity strategy="identity">
              <column name="PATH_ID"/>
            </datastore-identity>
      
            <datastore-identity strategy="identity">
               <column name="AUTHZ_OBJ_ID"/>
            </datastore-identity>
      

      noticeably improve performance for saving full HMS snapshot in DB.

      Attachments

        Activity

          People

            Unassigned Unassigned
            akolb Alex Kolbasov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: