mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
perf: remove conditional check for empty sanitized_rows before execute_many database call
This commit is contained in:
@@ -670,8 +670,7 @@ async def _execute_batched_upsert(query: str, rows):
|
||||
for row in rows_to_insert
|
||||
]
|
||||
|
||||
if sanitized_rows:
|
||||
await database.execute_many(query, sanitized_rows)
|
||||
await database.execute_many(query, sanitized_rows)
|
||||
|
||||
finally:
|
||||
# Always release all acquired session-level locks
|
||||
|
||||
Reference in New Issue
Block a user