Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15522

IndexQuery should perform index scan if no criteria set

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.12
    • None
    • IndexQuery can scan PK indexes
    • Docs Required, Release Notes Required

    Description

      Currently impossible to return full index range with existing IndexQuery criteria. There are  workarounds like `lte(Integer.MAX_VALUE)`. But it will be much better enable index scan by default if not criteria set. It's useful by reasons:

      1. In some cases IndexQuery is faster then ScanQuery. Then IndexQuery should have same API as ScanQuery for such cases - new IndexQuery(tbl, idxName)
      2. IndexQuery criteria performs AND operation. There is no way to set OR. setFilter is only way to specify custom rule non-AND rule for IndexQuery. So we need allow to use only filter without any criteria.

       

      If index name isn't specified then IndexQuery should take PK index of specified table.

      Attachments

        Issue Links

          Activity

            People

              timonin.maksim Maksim Timonin
              timonin.maksim Maksim Timonin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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