Skip to content

Add query time debugging #57

Description

@BassMastaCod

Add a debug flag to log the time for search results using something like

start_time = time.perf_counter()
results = SearchResults(query.all(), total, _page, _per_page)
query_time = time.perf_counter() - start_time
if query_time > 0:
    print(f'Query executed in {query_time:.4f} seconds: {query.statement}')
return results

or at least add documentation to inform devs how to easily patch in this logic.

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