Skip to content

[FR] log sqlite execution time in debug mode #7728

Closed
@HansBull

Description

Is your feature request related to a problem? Please describe.
Slow import on larger collections as in https://discuss.pixls.us/t/slow-image-import-to-a-large-library/22327

Describe the solution you'd like
DT_DEBUG_SQLITE3_PREPARE_V2 logs the query, but not the execution time. Implement a function that measures execution time to facilitate the identiifcation of slow queries and adds ths information to the log. Could require replacing globally sqlite3_step etc with a DT_DEBUG_SQLITE3_STEP macro.

Alternatives
none

Additional context
none

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions