News for hackers. Stuff that matters.
Re:SQLite small blob storage: 35% Faster Than the Filesystem by wyc on Wednesday June 14, 2017 @12:37AM (#14550681)
I know that SQLite performs exceptionally on embedded devices including most phones, IoT devices, and more. However, for better or worse, it's a flat file. Does anyone know of a TCP/IP-speaking SQL database that would work well on an embedded device? PostgreSQL/MariaDB seem kinda heavy, and the net couplers for SQLite look pretty unsupported.
Re:SQLite small blob storage: 35% Faster Than the Filesystem by dragonwriter on Wednesday June 14, 2017 @12:48AM (#14550712)
> However, for better or worse, it's a flat file.

No, it's not. It's a file, but it's not flat.

Re:SQLite small blob storage: 35% Faster Than the Filesystem by wyc on Wednesday June 14, 2017 @12:52AM (#14550723)
You are technically correct. The best kind of correct!
Re:SQLite small blob storage: 35% Faster Than the Filesystem by peterwwillis on Wednesday June 14, 2017 @01:02AM (#14550745)
They were not technically correct, they were just correct. A flat file database is a file with no indexing structure, usually plaintext, usually one record per line. SQLite uses a binary format consisting of an index of pages and a rollback journal or log file. They are significantly different.

Also, yes, there are networked databases with sqlite database drivers.

Re:SQLite small blob storage: 35% Faster Than the Filesystem by programd on Wednesday June 14, 2017 @10:25AM (#14552929)
MySQL/MariaDB can be tuned to run very well on low resource devices. Remember that they were originally developed back in the days of 486 CPUs. A couple of years ago I had MySQL backing a commercial product on a 512M ARM7 5400RPM device (we originally developed it with 256M of memory). Performance was not an issue for our use case even with on the order of a million rows in the DB.
Re:SQLite small blob storage: 35% Faster Than the Filesystem by Quarrelsome on Wednesday June 14, 2017 @03:53AM (#14551265)
and what exactly do you think any database is at the end of the day? It's not magic, it all ends up on the disk as a file. I mean why is a page file called a FILE?
Re:SQLite small blob storage: 35% Faster Than the Filesystem by wyc on Wednesday June 14, 2017 @09:24AM (#14552488)
Sure, we can agree that (almost) everything's a file. However, through their related programs and daemons, we can ask files for more useful functionality such as indexes, versioning, and yes, socket communications.
Re:SQLite small blob storage: 35% Faster Than the Filesystem by Chris2048 on Wednesday June 14, 2017 @08:35AM (#14552238)
Some dbs (innodb?) support raw block/partition access
Re:SQLite small blob storage: 35% Faster Than the Filesystem by elcritch on Wednesday June 14, 2017 @02:19AM (#14550953)
ActorDB could get you there, it's a distributed DB based on SQLite [1].

[1]: http://www.actordb.com

Re:SQLite small blob storage: 35% Faster Than the Filesystem by qznc on Wednesday June 14, 2017 @02:07AM (#14550920)
Use sqlite and send SQL queries and answers over the network.
Re:SQLite small blob storage: 35% Faster Than the Filesystem by AstralStorm on Wednesday June 14, 2017 @02:14AM (#14550940)
Or you can switch to the big daddy Postgres or Oracle. They will generally accept SQL that SQLite accepts with few modifications.