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

Avoid multiple $nears in one query #3798

Conversation

NotBobTheBuilder
Copy link
Contributor

Mongo has a hard limit on 1 $near operation per query. Restructuring to
avoid SERVER-13732 should not invalidate a query by creating multiple
$near operations.

Additionally, queries with multiple $ors are now recursively handled,
whereas before, ops at the top level would only have been pushed one
level deeper.

Opened in response to:
#3767

Mongo has a hard limit on 1 $near operation per query. Restructuring to
avoid SERVER-13732 should not invalidate a query by creating multiple
$near operations.

Additionally, queries with multiple $ors are now recursively handled,
whereas before, ops at the top level would only have been pushed one
level deeper.

parse-community#3767
@codecov
Copy link

codecov bot commented May 10, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@64e6f40). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #3798   +/-   ##
=========================================
  Coverage          ?   90.13%           
=========================================
  Files             ?      114           
  Lines             ?     7504           
  Branches          ?        0           
=========================================
  Hits              ?     6764           
  Misses            ?      740           
  Partials          ?        0
Impacted Files Coverage Δ
src/Controllers/DatabaseController.js 94.35% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 64e6f40...122541a. Read the comment docs.

@srameshr
Copy link
Contributor

srameshr commented May 10, 2017

@NotBobTheBuilder It's working fine. Thanks!

@flovilmart
Copy link
Contributor

Awesome! Thanks @NotBobTheBuilder !

@flovilmart flovilmart merged commit 7b9ebc4 into parse-community:master May 10, 2017
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.

3 participants