Skip to content

explicit prepared statement support #86

@glyph

Description

@glyph

By constraining all of its SQL into a small, pregenerated set of static strings, DBXS makes it easier for drivers like sqlite3 and psycopg whose default prepared statement support is to simply maintain a fixed-size cache of statements.

However, this support is presently accidental. Although those drivers support tuning the cache size, and DBXS has the ability to enumerate all of the queries that all loaded accessors support ahead of time as long as they've all been imported, we don't provide any hints to those drivers. Similarly, drivers like MySQL which require an explicit preparation step are not supported.

DBXS should press this performance advantage more, and add explicit support and testing to ensure that prepared statements are being used everywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions