Skip to content

Execute() vs. LRU cache (e.g. fetchval()) vs. Prepared statement #92

@songololo

Description

@songololo

In the case where information is being written to the database, but no information is returned, is there any benefit to using fetch(), fetchrow(), or fetchval() in order to make use of the underlying LRU cache (it appears that no cache is available on execute()?

Similarly, is there any benefit to using a Prepared Statement when no information is being returned? (The PreparedStatement class has no execute method).

Given the above, I'm assuming that the LRU cache and Prepared Statements are only beneficial for when the database has to return information?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions