How to correctly using async insert settings in clickhouse?
I am following the documentation on clickhouse website here: https://clickhouse.com/docs/en/optimize/asynchronous-inserts to use async inserts.
I wanted to apply async insert settings at user level. I used approach mentioned here https://clickhouse.com/docs/en/optimize/asynchronous-inserts#enabling-asynchronous-inserts , verified that async insert is enabled from system.settings table in clickhouse.
Now when I insert into tables using this user logged in on the server, doing it via console only using INSERT INTO table() values ()
command. It inserts the record into table but this insertion log doesn't appear in asynchronous_insert_log
table.
When can this happen? What all logs I can use to debug this.
Update:
When I do INSERT INTO Table SETTINGS async_insert=1 wait_for_async_insert=1
values (), then it actually shows up in asynchronous_insert_log table else not.