Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

SQLite is nice for small, standalone projects, since the data file is a single object that lives with the project. Most of the NoSQL solutions I've seen are servers that store data there. Is there a NoSQL solution that keeps the data in a single file like SQLite?

share|improve this question

closed as off topic by John Gardeniers, voretaq7 Jul 28 '12 at 4:14

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

I dont think there is a true flatfile nosql solution out there. Mongodb claims to be able to run for small installations requiring minimal config and it does do that. However there is no way around running a daemon. I suppose it is the way nosql systems are designed that they must manage processes. Other than that you are basically looking at flat files or sql embedded databases. – Vangel Jul 10 '12 at 8:13
Here's this question on SO:… – pjz Jul 20 '15 at 18:22
up vote 0 down vote accepted

If you really have a hard-on for keeping everything in a single file (well, almost), BerkeleyDB is what you want. However, I'd probably just use the original key-value store: your filesystem.

share|improve this answer

There's GDBM:

The basic use of GDBM is to store key/data pairs in a data file. Each key must be unique and each key is paired with only one data item.

The library provides primitives for storing key/data pairs, searching and retrieving the data by its key and deleting a key along with its data. It also support sequential iteration over all key/data pairs in a database.

share|improve this answer

yep its called CSV


share|improve this answer
Cute idea, but the CSV file format has no optimization (B-Tree or whatnot) for dealing with very large data sets as most databases do. The linked implementation reads the entire database into memory for every query run. – MidnightLightning Jul 9 '12 at 21:30
neither does nosql. nosql usually does not implement btree but most commly hash indexes or range indexes. It is true that it will read entire thing to memory with CSV but since you wanted an embedded one I assumed it is not going to be a huge DB and reading from memory might infact be better. You can however use MS Access for flat file querying using ADODB or similar adapters for your language. – Vangel Jul 10 '12 at 8:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.