Create index concurrently (#2659)

This commit is contained in:
William FH
2024-12-05 15:56:39 -08:00
committed by GitHub
parent b7e441d781
commit 93e4c8cc1f
7 changed files with 55 additions and 55 deletions
+2 -3
View File
@@ -63,9 +63,8 @@ async def _pipe_saver():
prepare_threshold=0,
row_factory=dict_row,
) as conn:
async with conn.pipeline() as pipe:
checkpointer = AsyncPostgresSaver(conn, pipe=pipe)
await checkpointer.setup()
checkpointer = AsyncPostgresSaver(conn)
await checkpointer.setup()
async with conn.pipeline() as pipe:
checkpointer = AsyncPostgresSaver(conn, pipe=pipe)
yield checkpointer