4 ms·
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
by wyc 9y ago
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.
- dragonwriter 9y ago> However, for better or worse, it's a flat file. No, it's not. It's a file, but it's not flat.
- wyc 9y agoYou are technically correct. The best kind of correct!
- peterwwillis 9y agoThey 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.
- qznc 9y agoUse sqlite and send SQL queries and answers over the network.
- AstralStorm 9y agoOr you can switch to the big daddy Postgres or Oracle. They will generally accept SQL that SQLite accepts with few modifications.
- elcritch 9y agoActorDB could get you there, it's a distributed DB based on SQLite [1]. [1]: http://www.actordb.com http://www.actordb.com
- Quarrelsome 9y agoand 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?
- programd 9y agoMySQL/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.