Skip to content

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