try: rewrite some parts with process pools

This commit is contained in:
cwilvx
2025-02-12 21:28:53 +03:00
parent beec5bc7d3
commit fa7c781610
9 changed files with 90 additions and 43 deletions
+2 -1
View File
@@ -1,5 +1,4 @@
from contextlib import contextmanager
import gc
from sqlalchemy import Engine, event
@@ -43,3 +42,5 @@ class DbEngine:
raise e
finally:
conn.close()
del conn
cls.engine.clear_compiled_cache()