Skip to content

new optional parameter to limit the lengths collection #49

Open
@davidguiodo

Description

@davidguiodo

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 !

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions