Merge branch 'feature/show_rows' into develop
This commit is contained in:
commit
730df7b534
2 changed files with 10 additions and 1 deletions
|
|
@ -61,6 +61,7 @@ def measure_query_runtime(
|
|||
cur = connection.cursor()
|
||||
cur.execute(query_to_measure.query_string)
|
||||
rows = cur.fetchall()
|
||||
obtained_rows = len(rows)
|
||||
print(
|
||||
f"Query '{query_to_measure.name}' took {int(time.time() - start_time)} seconds to run."
|
||||
f"Query '{query_to_measure.name}' took {int(time.time() - start_time)} seconds to run and returned {obtained_rows} rows."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue