Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9345

Query performance issue

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: query
    • Labels:
      None
    • Environment:

      DocumentNodeStoreService: RDB

      Oracle 18C

      Jackrabbit OAK  1.36

      Description

      Added over 5 million documents to Jackrabbit OAK after that performance problems started with following query. Using Oracle DB for DocumentNodeStoreService  It s doing table access full scans.

      
      select ID, MODIFIED, MODCOUNT, CMODCOUNT, HASBINARY, DELETEDONCE, VERSION, SDTYPE, SDMAXREVTIME, DATA, BDATA
       from NODES where ID > :1
       and ID < :2
       order by ID FETCH FIRST ? ROWS ONLY
      
      

      Looks like  Oracle DB  oes not like ID column index and switches to table full scan, because ID column is not number.    As a solution probably index hint need to be added and there should index name for ID column.

       

       

        Attachments

        1. repository-config_rdb.json
          2 kB
          Ivar Suits

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              isuits Ivar Suits
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: