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.
Add a debug flag to log the time for search results using something like
or at least add documentation to inform devs how to easily patch in this logic.