mongita
NeDB
Our great sponsors
mongita | NeDB | |
---|---|---|
10 | 8 | |
774 | 13,056 | |
- | - | |
4.3 | 0.6 | |
2 months ago | 7 months ago | |
Python | JavaScript | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mongita
- Mongita is to MongoDB as SQLite is to SQL
-
Show HN: Mongita is to MongoDB as SQLite is to SQL
It's a good question and to be accurate, depending on the benchmark, Mongita is about the same speed at SQLite to several-times slower.
There is less happening algorithmically than you would think. Where the tricky slow bits do exist, they have largely fallen into the happy-path of fast data structures in the Python language/stdlib. I also use sortedcontainers for indexes which helped quite a bit (http://www.grantjenks.com/docs/sortedcontainers/).
If you're curious, the benchmark code is in the repo: https://github.com/scottrogowski/mongita/blob/master/benchma...
- Scottrogowski/Mongita
- I wrote an embedded database (like SQLite) that implements most of the PyMongo/MongoDB API
- I wrote an embedded NoSQL database (embedded as-in SQLite) that implements the PyMongo API.
NeDB
-
default "has vision" token settings
What I'd do to get the best understanding of how NeDB works is to dive into the docs here. The primary things to keep in mind are that there can be other non-JSON data in those files, and that all of the document data is appended and periodically compacted, which means you'll often have an arbitrary number of duplicates and versions within the same file.
-
Embedded DB for ElectronJS?
I've used https://github.com/louischatriot/nedb before but it may not meet your needs.
-
Views Of Data
NeDB compatible with MongoDB
-
Mongita is to MongoDB as SQLite is to SQL
Also, there is a javascript solution called nedb: https://github.com/louischatriot/nedb, which does largely the same thing
-
I wrote an embedded NoSQL database (embedded as-in SQLite) that implements the PyMongo API.
There is similar project in Javascript called NeDB
- NeDB – Embedded persistent or in memory database for JavaScript
-
Show HN: SleekDB 2.0 – Simple database effortless
Nicely done!
I like the small codebase with no dependencies - I imagine it's easy to start using. Also appreciate the extensive query interface and documentation.
It reminds me of NeDB in Node.js world, which has proven its worth to me on several occasions when I needed a simple JSON-based database with mostly read operations (which are served from memory), running for literally years with no issue at all.
-
NPM package to create a super simple database?
nedb is the package you are searching for. Just JS, same syntax as MongoDB, runs in RAM and can persist data on disk
What are some alternatives?
Lowdb - Simple to use local JSON database. Powered by plain JavaScript (supports Node, Electron and the browser)
hjson-js - Hjson for JavaScript
pg-mem - An in memory postgres DB instance for your unit tests
Keyv - Simple key-value storage with support for multiple backends
@databases - TypeScript clients for databases that prevent SQL Injection
Themis - Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms.
node-sqlite3 - Asynchronous, non-blocking SQLite3 bindings for Node.js
database-js - Common Database Interface for Node
DataStax Node.js Driver for Apache Cassandra - DataStax Node.js Driver for Apache Cassandra
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB (Preview)
Mongo Seeding - The ultimate solution for populating your MongoDB database.
LokiJS - javascript embeddable / in-memory database