mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: benchmark_migration.py needs to close sssion (#15822)
This commit is contained in:
@@ -172,6 +172,7 @@ def main(
|
||||
rows = session.query(model).count()
|
||||
print(f"- {model.__name__} ({rows} rows in table {model.__tablename__})")
|
||||
model_rows[model] = rows
|
||||
session.close()
|
||||
|
||||
print("Benchmarking migration")
|
||||
results: Dict[str, float] = {}
|
||||
|
||||
Reference in New Issue
Block a user