mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
try: rewrite some parts with process pools
This commit is contained in:
+2
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user