[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:
Depends
is depended on by SERVER-57765 Allow partial filter expression to us... Closed
is depended on by SERVER-58359 More flexible query containment for $... Closed
Duplicate
is duplicated by SERVER-58616 Fix BF for partialFilterExpression_wi... Closed
Problem/Incident
Related
related to SERVER-73242 Partial index with $geoWithin filter ... Backlog
related to SERVER-73235 Replace invariant with uassert in geo... Closed
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: SERVER-57763: Allow partial filter expression to use $geoWithin
Branch: master
https://github.com/mongodb/mongo/commit/50a49d4d2a55d3a52cb5fe8e413fd2d79f0529cc

Comment by Githook User [ 16/Jul/21 ]

Author:

{'name': 'Uladzimir Makouski', 'email': 'uladzimir.makouski@mongodb.com', 'username': 'umakouski'}

Message: Revert "SERVER-57763: Allow partial filter expression to use $geoWithin"

This reverts commit 9aa9f7bec0ebbedea4dc9f3e3369780413dcef7f.
Branch: master
https://github.com/mongodb/mongo/commit/7586884114380c6dfad296255609f59436e67784

Comment by Githook User [ 14/Jul/21 ]

Author:

{'name': 'Maddie Zechar', 'email': 'mez2113@columbia.edu', 'username': 'madelinezec'}

Message: SERVER-57763: Allow partial filter expression to use $geoWithin
Branch: master
https://github.com/mongodb/mongo/commit/9aa9f7bec0ebbedea4dc9f3e3369780413dcef7f

Comment by Githook User [ 14/Jul/21 ]

Author:

{'name': 'Uladzimir Makouski', 'email': 'uladzimir.makouski@mongodb.com', 'username': 'umakouski'}

Message: Revert "SERVER-57763: Allow partial filter expression to use $geoWithin"

This reverts commit 129b132138d1e129ef1a3cee31fe0da4b19c8c48.
Branch: master
https://github.com/mongodb/mongo/commit/77d6d01aec8e348c5a4a285cf0c247ffdb031893

Comment by Githook User [ 13/Jul/21 ]

Author:

{'name': 'Maddie Zechar', 'email': 'mez2113@columbia.edu', 'username': 'madelinezec'}

Message: SERVER-57763: Allow partial filter expression to use $geoWithin
Branch: master
https://github.com/mongodb/mongo/commit/129b132138d1e129ef1a3cee31fe0da4b19c8c48

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.

Generated at Thu Feb 08 05:42:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.