Skip to content

In-memory proxy for caching data #1844

Answered by simolus3
hamboomger asked this question in Q&A
Discussion options

You must be logged in to vote

First and foremost - this library is insanely good, easily the best database client I've used in my 6 years of work as a web developer

Thanks! ❤️

The gut reaction I have is to pre-load this data on the application start up, so that it will fetch the data from the memory instead of the database.

This isn't what you asked for, but first a general note: For performance reasons alone, this shouldn't be necessary. sqlite3 will cache parts of your database in-memory as well. So for databases that aren't too large, you'll get most drift/sqlite3 queries answered from memory either way.

So far so good, but when the user goes to the aforementioned screen, there is a split second when the data …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hamboomger
Comment options

Answer selected by hamboomger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants