Giter VIP home page Giter VIP logo

jsonlite's Issues

Add references between objects

Instead of having nested objects inside each JSON file, have plain JSON objects inside each of them and reference to other files by their UUID. This would also allow to use hashes to identify each object and have automatic deduplication.

expose programmatic interface?

it's a great idea & tool you've come up with, esp. if i'm using Shell; but would it be possible to make a programmatic interface for co-workers more well-versed in, say, Python/Java? thanks

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

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.

Add support for setting custom document id's

Add the ability to provide a custom document id (aka key) to set using a new command specific option --key. This feature also bumps the major version to 2.0.0.

Any security implications? Make sure not able to override files outside of $JSONLITE_DATA_DIR.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.