by simonw · 5y ago · 0 comments
Where do the SQLite files live? Are you using some kind of NFS or EFS or similar for them? Sharding them across many machines?
How are you handling backups and high availability? Are you using Litestream?
How many SQLite files do your application servers have open at any one time?
SQLite is crazy fast in WAL mode, but it's because they use a memory-mapped file to coordinate consistency across multiple processes/threads. You can't mmap a remote file.
(Source: hacking in a DB replica workaround to PhotoStructure so people can store their library on arbitrary filesystems... BTW, I'd love to be wrong here: if someone's figured out how to do this, please share!)
Also, how do you handle migrations, both schema as well as data?