notebook
This commit is contained in:
@@ -7,6 +7,7 @@ import pymysql
|
||||
import re
|
||||
from pathlib import Path
|
||||
from datetime import datetime
|
||||
import time
|
||||
|
||||
# ==============================
|
||||
# ⚙️ CONFIGURATION
|
||||
@@ -144,6 +145,7 @@ for r in rows:
|
||||
continue
|
||||
|
||||
# fetch blob only now
|
||||
start = time.perf_counter()
|
||||
cur_blob.execute(
|
||||
"SELECT file_content FROM medevio_downloads "
|
||||
"WHERE request_id=%s AND filename=%s",
|
||||
@@ -152,6 +154,8 @@ for r in rows:
|
||||
row = cur_blob.fetchone()
|
||||
if not row:
|
||||
continue
|
||||
end = time.perf_counter()
|
||||
print(f"⏱ Took {end - start:.4f} seconds")
|
||||
|
||||
content = row[0]
|
||||
if not content:
|
||||
|
||||
Reference in New Issue
Block a user