Menu

Storing Documents: From a JSON String to Bytes on Disk
📰

Storing Documents: From a JSON String to Bytes on Disk

DEV Community: database·Priyanshu Verma·1 day ago
#EfbHJrEP
#devtodatabase#devto#dev#bytes#document
Reading 0:00
15s threshold

Series: nosqlite devlog, Part 4

By the end of the third article, nosqlite had empty collections.

You could launch the shell, type create users , and the database would happily nod, update its catalog page, and save the collection name to disk. But a database that only stores collection names is just an expensive notepad. It is the architectural equivalent of putting empty cardboard boxes in a warehouse and calling it a logistics empire.

It was time to store actual data.

This was the part of the project I had been looking forward to the most, because this is where database theory stops being abstract and starts turning into raw binary operations. When someone uses a document database, they think in JSON.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.