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

Shard document id's by the first character into one-level deep subdirectories #15

Open
nodesocket opened this issue May 15, 2016 · 0 comments

Comments

@nodesocket
Copy link
Owner

nodesocket commented May 15, 2016

Shard document id's by the first character into one-level deep subdirectories. This feature also bumps the major version to 2.0.0.

Requires updating README.md, CHANGELOG.md, and adding new specific tests for this case as well.

Why?

Mitigates filesystem limits on the number of files in a single directory by a factor of 16 since we are sharding by the first character only.

Constraints

  • The solution should be backwards compatible, meaning jsonlite still can read databases that don't use sharding without significant performance degradation.
  • Should not significantly degrade performance of existing commands set, get, count, delete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant