Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid duplicate index selection in Mango #807
Previously, index selection for a given query was run twice for each request - once to add
This moves the warning generation so that it occurs at the end of the query processing and we can use the existing index context to decide whether to add a warning or not.
Whilst only a minor optimisation (which also assumes we don't have cached query plans etc), it
Added a unit test to cover that a warning is appropriately generated. The text index tests should also be run manually.
GitHub issue number
Related Pull Requests
@garrensmith I kinda agree. However, it's no different to the pattern used by bookmarks or execution stats (i.e. JSON serialisation happens in the