Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2937

Use atomic prefix from array indexes in queries w/o array element.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • IDX - Indexes
    • None

    Description

      Given the multi-valued index:

       

      CREATE INDEX someIdx ON SomeDataset (
          field1, 
          field2,
          UNNEST arrayField 
          SELECT field3, field4
      );

      The following query could take advantage of the index above:

      FROM   SomeDataset D
      WHERE  D.field1 = 1 AND D.field2 = 2
      SELECT *;

      but is currently not. This is because we delay recognition of array index applicability until we see the array component of an array index. Work to realize this involves improving how we make the decision to use a prefix search for array indexes.

       

      Attachments

        Activity

          People

            ggalvizo Glenn Justo Galvizo
            ggalvizo Glenn Justo Galvizo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: