You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do i properly use async_insert per session with disabled wait_for_async_insert option via asynch?
so far i came up with something like this, because if i pass kwarg async_insert=1 in connection instance it doesn't seem to be consumed by the connection proto.
async with Connection(
host=settings.click_host,
port=settings.click_port,
user=settings.click_user,
password=settings.click_password,
database=settings.click_db,
) as client:
async with client.cursor() as cursor:
await cursor.execute(
'''
SET async_insert = 1;
'''
)
await cursor.execute(
'''
SET wait_for_async_insert = 0;
'''
))
...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, fellow users of asynch 0.3.0
How do i properly use
async_insertper session with disabledwait_for_async_insertoption via asynch?so far i came up with something like this, because if i pass kwarg
async_insert=1in connection instance it doesn't seem to be consumed by the connection proto.Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions