We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d5a3e7 commit cacfba6Copy full SHA for cacfba6
services/web/server/src/simcore_service_webserver/workspaces/_groups_db.py
@@ -92,9 +92,8 @@ async def list_workspace_groups(
92
)
93
94
async with pass_or_acquire_connection(get_asyncpg_engine(app), connection) as conn:
95
- result = await conn.execute(stmt)
96
- rows = result.fetchall() or []
97
- return [WorkspaceGroupGetDB.from_orm(row) for row in rows]
+ result = await conn.stream(stmt)
+ return [WorkspaceGroupGetDB.from_orm(row) async for row in result]
98
99
100
async def get_workspace_group(
0 commit comments