Allow `hint` to accept `anyIndex`

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It would be useful to allow queries to require some index to support them, without requiring the query author to specify which index applies. This would let application authors test their queries for index support without having to set `notablescan` in the server configuration (which they often can’t due to access restrictions).

      Such a control could become standard advice for new code: set `hint: "anyIndex"` unless you know the query doesn’t need an index (e.g., if the collection is small).

      Slack discussion

            Assignee:
            Unassigned
            Reporter:
            Felipe Gasper
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: