[SERVER-57763] Allow partial filter expression to use $geoWithin Created: 16/Jun/21 Updated: 29/Oct/23 Resolved: 20/Jul/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.1.0-rc0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | David Percy | Assignee: | Maddie Zechar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||
| Sprint: | Query Optimization 2021-07-12, Query Optimization 2021-07-26 | ||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||
| Linked BF Score: | 161 | ||||||||||||||||||||||||||||||||||||
| Description |
|
We should allow partial indexes to selectively index documents based on location. Currently, the partialFilterExpression only accepts a few operators (for example $eq, $lt, $and). We should have it accept $geoWithin. |
| Comments |
| Comment by Vivian Ge (Inactive) [ 06/Oct/21 ] |
|
Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you! |
| Comment by Githook User [ 19/Jul/21 ] |
|
Author: {'name': 'Maddie Zechar', 'email': 'mez2113@columbia.edu', 'username': 'madelinezec'}Message: |
| Comment by Githook User [ 16/Jul/21 ] |
|
Author: {'name': 'Uladzimir Makouski', 'email': 'uladzimir.makouski@mongodb.com', 'username': 'umakouski'}Message: Revert " This reverts commit 9aa9f7bec0ebbedea4dc9f3e3369780413dcef7f. |
| Comment by Githook User [ 14/Jul/21 ] |
|
Author: {'name': 'Maddie Zechar', 'email': 'mez2113@columbia.edu', 'username': 'madelinezec'}Message: |
| Comment by Githook User [ 14/Jul/21 ] |
|
Author: {'name': 'Uladzimir Makouski', 'email': 'uladzimir.makouski@mongodb.com', 'username': 'umakouski'}Message: Revert " This reverts commit 129b132138d1e129ef1a3cee31fe0da4b19c8c48. |
| Comment by Githook User [ 13/Jul/21 ] |
|
Author: {'name': 'Maddie Zechar', 'email': 'mez2113@columbia.edu', 'username': 'madelinezec'}Message: |
| Comment by David Percy [ 30/Jun/21 ] |
|
We should also test index maintenance: when you update a document and its geo coordinates change, that can result in the index entry being added or removed. Hopefully this will already work, if the index maintenance code reuses MatchExpression::matches(). |
| Comment by David Percy [ 30/Jun/21 ] |
|
We should probably FCV-gate this--you wouldn't want to downgrade while an index exists that older binaries don't understand. |