Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soe fix mongodb array deep scan #10

Open
wants to merge 2 commits into
base: soe
Choose a base branch
from

Conversation

3bst0r
Copy link

@3bst0r 3bst0r commented Nov 10, 2021

fix incorrect MongoDB soeArrayDeepScan: enforce that matched city is within the visited country. previously would match all customers that visited the country and visited the city. now matches only customers that visited the city within the country.

Compare the following two playgrounds:
old way:
https://mongoplayground.net/p/Dlcon5iRMfT
new way:
https://mongoplayground.net/p/D3Ueco07P8z

We want to find customers that have visited Sydney in Australia. The old query would match a customer that has visited cities in Australia (but not Sydney in Australia) and Sydney, Canada. The new query only matches the customers that has visited Sydney, Australia.

…within the visited country. previously would match all customers that visited the country and visited the city. now matches only customers that visited the city within the country.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant