Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1266 DocumentStore implementation for relational databases
  3. OAK-3445

RDBDocumentStore: when generating SQL for queries, leave out unneeded constraints

    XMLWordPrintableJSON

Details

    • Technical task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.21, 1.2.6, 1.3.6
    • 1.0.22, 1.2.7, 1.3.7, 1.4
    • rdbmk
    • None

    Description

      The WHERE clauses are currently generated in a generic fashion, thus including constraints on IDs that are known to evaluate to TRUE. This causes confusion when people look at SQL traces. It would help to skip constrains for ID > NodeDocument.MIN_ID_VALUE and ID < NodeDocument.MAX_ID_VALUE.

      Attachments

        Activity

          People

            reschke Julian Reschke
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: