Dataabase cache driver #153
binaryfire
started this conversation in
Ideas
Replies: 1 comment
-
Hi @binaryfire , thanks for asking, a PR for database driver is welcome! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Content
Hi @albertcht. I know you've mentioned in the docs that:
However one place where a db cache driver is essential is for apps deployed to IOT devices, and for all-in-one Docker images. These types of apps are usually built with SQLite because including additional services like Redis isn't always possible.
Regarding the performance of SQLite - with the right optimizations it can hit insanely high levels of performance. Around 80,000 inserts / second:
https://www.powersync.com/blog/sqlite-optimizations-for-ultra-high-performance
https://news.ycombinator.com/item?id=35547819
https://phiresky.github.io/blog/2020/sqlite-performance-tuning/
Which makes it perfect for caching when Redis isn’t an option. It’s much faster than the file driver.
I'd like to PR a database cache driver. Will that be ok with you?
Beta Was this translation helpful? Give feedback.
All reactions