Databases

Databases

Filesystem

I mean, yes, technically databases and files are something different, but fundamentally, similar principles apply. One may treat files as database records, and their ID are their unique paths. Similarly, you can also save lots of arbitrary data in a single database record.

-- Zettlr auf Twitter

Sqlite

When to use

Appropriate Uses For SQLite

Sqlite vs Filesystem

SQLite reads and writes small blobs (for example, thumbnail images) 35% faster¹ than the same blobs can be read from or written to individual files on disk using fread() or fwrite().

Furthermore, a single SQLite database holding 10-kilobyte blobs uses about 20% less disk space than storing the blobs in individual files.

The performance difference arises (we believe) because when working from an SQLite database, the open() and close() system calls are invoked only once, whereas open() and close() are invoked once for each blob when using blobs stored in individual files. It appears that the overhead of calling open() and close() is greater than the overhead of using the database. The size reduction arises from the fact that individual files are padded out to the next multiple of the filesystem block size, whereas the blobs are packed more tightly into an SQLite database.

-- https://www.sqlite.org/fasterthanfs.html

Spreadsheets

Google Sheets, Airtable JSON API

Tools

HeidiSQL

[[Database - HeidiSQL SSH Tunnel Setup]]

dbeaver CE