Closed
Description
sqlx provides functionality for setting the persistence of Query, but not QueryAs, QueryScalar.
In my case, I'm using caching to store parsed data from SQLite, and I only load data which is not in the cache, using WHERE ... IN (uncached_ids)
. However, each of these statements is very likely to be unique, which causes sqlx to cache a lot of similar statements and bloat memory usage in my application.