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

new optional parameter to limit the lengths collection #49

Open
davidguiodo opened this issue Jan 11, 2018 · 0 comments
Open

new optional parameter to limit the lengths collection #49

davidguiodo opened this issue Jan 11, 2018 · 0 comments
Assignees

Comments

@davidguiodo
Copy link

Hi,

this works very fine on a mongodb with a big collection (600 000 items).
But the schema is very big just because of the "lengths" collection. My schema is 30 Mo and it could be just a few Ko if the "lengths" collection could be limited to 1000 / 2000 items with an option (the average would not be so precise in this case).

For example, the code in stream.js :
type.lengths.push(value.length);

could be something like :
if (type.lengths.length < MYOPTION) type.lengths.push(value.length);

Thanks for your work !

@durran durran self-assigned this Jan 11, 2018
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