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

Records counting #2

Open
onsails opened this issue Dec 4, 2019 · 1 comment
Open

Records counting #2

onsails opened this issue Dec 4, 2019 · 1 comment

Comments

@onsails
Copy link

onsails commented Dec 4, 2019

First of all thank you for this beautiful crate. I’ve already adopted it and looking forward to contribute.
I need to count record in a single chunk and in all chunks. Looking at internals I can see various ways to do this. What is the recommended way to count records?

@itsybitesyspider
Copy link
Owner

@prettynatty Hi and thanks!

I've added an example (https://github.com/itsybitesyspider/retriever/blob/master/examples/count_records.rs) of how to efficiently maintain a count of records that meet some criteria. Please let me know if for any reason it doesn't match your use case.

Eventually I want built-in implementations of common reductions, including counting records or other summation strategies. I'm going to leave this ticket open until that is done.

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