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

No possibility to perform a query for minimum/maximum value? #15

Open
tuurke63 opened this issue Aug 24, 2021 · 2 comments
Open

No possibility to perform a query for minimum/maximum value? #15

tuurke63 opened this issue Aug 24, 2021 · 2 comments

Comments

@tuurke63
Copy link

Dear development team,

I'm testing this wonderful library and the one thing I cannot find is an efficient method for selecting the minimum and maximum value of a field in a very large collection (millions of entries). I have an index on this field to speed things up and the values are unique.

Suggestions I found on the internet (such as db.collection.find().sort({age:-1}).limit(1) ) don't work because igoMongoCollection does not have a method "limit" etc.

Maybe I'm just overlooking something. Could you shine some light on this? Sorry if posting this as an "issue" is the wrong way, but I'm not aware of a different place to ask this question.

Kind regards,
Arthur Hoornweg

@allendrennan
Copy link
Collaborator

Thank you for your kind comments. Yes, the library is not meant to be exhaustive but only an example for others to build upon. Please feel free to add and modify as you see fit. We have made these additions internally but have not applied them to the open source version yet along with many more and may do this in the future as well.

@tuurke63
Copy link
Author

tuurke63 commented Sep 1, 2021

Hi Allen,

are you at Grijjy planning to backport the enhancements which you use internally back to the open source version in a short timeframe, or is it going to be somewhere in the remote future? My reason for asking: if I or anyone else implement new features they will certainly not be compatible with stuff you may have already. If you have something in the pipeline, it might be worthwhile for me and for others to wait just a little longer and then have a more complete framework to build upon instead of re-inventing the wheel.

Have a nice day!
Arthur Hoornweg

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

No branches or pull requests

2 participants