Does creating Index for the fields which are used in the partial_filter_selector improves query performance? #3099
-
|
my index definition my query: Do I have to include objectType in fields array in the index definition? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
When using The query planner only supports a single range scan of an index when fulfilling a query - it's essentially querying a view with a Since a single range cannot be inferred from the If you need more flexibility, you can install clouseau and use |
Beta Was this translation helpful? Give feedback.
When using
jsonindexes,$inoperators cannot be used to narrow the range of the index scan.The query planner only supports a single range scan of an index when fulfilling a query - it's essentially querying a view with a
startkey/endkeyparameter. You can see the generated view query if you call the_explainendpoint (or "explain" button in the UI).Since a single range cannot be inferred from the
$inoperator in conjunction with other clauses, this filter is applied in memory against each row returned from the index.If you need more flexibility, you can install clouseau and use
textindex types.