If you are going down that path, might also be useful to read through this PowerSync blog post.
- https://powersync.com/blog/sqlite-optimizations-for-ultra-hi...