This commit is contained in:
2025-11-16 11:26:04 +01:00
parent 105b10a06e
commit df1e77bc16
2 changed files with 106 additions and 0 deletions

View File

@@ -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: