Skip to content
Snippets Groups Projects
Commit 3c83fe14 authored by Sven-Ove Hänsel's avatar Sven-Ove Hänsel
Browse files

create charts and updat elogging

parent 70c395ce
Branches
No related tags found
No related merge requests found
This diff is collapsed.
File added
Query Key,Start Time,Execution Time (seconds),Rows Fetched
Query Key,Start Time,Total Time (s),Rows Fetched
ancestors,1707652688.6375496,0.006899833679199219,0
descendant,1707652688.6460233,0.0014214515686035156,0
path,1707652688.649565,0.0037491321563720703,0
......
......@@ -143,7 +143,7 @@ ORDER BY
writer = csv.writer(csv_log_file)
csv_log_file.seek(0, 2) # Move to the end of the file
if csv_log_file.tell() == 0: # If file is empty, write a header
writer.writerow(['Query Key', 'Start Time', 'Execution Time (seconds)', 'Rows Fetched'])
writer.writerow(['Query Key', 'Start Time', 'Total Time (s)', 'Rows Fetched'])
for key, query in queries.items():
start_time = time.time()
cur.execute(query)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment