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

Filter scope on MongoDB-driver side. #659 #680

Merged
merged 1 commit into from May 16, 2019

Conversation

afalaleev
Copy link

Resolve #659:

Filtering of scope by MongoDB server is very slow operation for case of big tables, because if collection doesn't contain objects w/ scope, that is requires full-scan of the collection.
Alternative way is to use min/max operators of MongoDB and filter scope on nodeos-side. If the located object by min/max has other scope, the mongodb-driver interpret it as end-of-cursor.

@afalaleev afalaleev added this to the Sprint-may-14 milestone May 16, 2019
@afalaleev afalaleev requested a review from s-medvedev May 16, 2019 16:05
@afalaleev afalaleev self-assigned this May 16, 2019
@afalaleev afalaleev force-pushed the 659-filter-scope-in-mongodb-driver branch from e3185f2 to f2f5aef Compare May 16, 2019 16:30
@afalaleev afalaleev merged commit 8d25d75 into alfa May 16, 2019
@afalaleev afalaleev deleted the 659-filter-scope-in-mongodb-driver branch May 16, 2019 16:41
@afalaleev afalaleev restored the 659-filter-scope-in-mongodb-driver branch May 17, 2019 09:37
@afalaleev afalaleev deleted the 659-filter-scope-in-mongodb-driver branch May 17, 2019 09:39
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.

None yet

2 participants