Skip to content

sqlx does not allow setting persistence of QueryAs, QueryScalar #1503

Closed
@philippeitis

Description

@philippeitis

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions