Open joe-bowman opened 4 years ago
Thank you! It intresting. I will try to make this.
I've tried to work around this in a number of ways.
default
) - so running multiple instances doesn't workINSERT INTO newdb.accounts VALUES (...)
means the http requests are accepted by clikchouse-bulk
(no errors, in logs or response) but nothing is ever flushed to the upstream serverI'll have a look this evening to see if I can get anything working.
Hello, @nikepan, @joe-bowman. Did you found any solution on this issue?
So I have two databases, we shall call them
default
andnewdb
containing identical tables, and if I connect to clickhouse directly usinghttp://username:password@localhost:8123/default
orhttp://username:password@localhost:8123/newdb
I am able to submit queries to the correct database.However, with clickhouse-bulk, the exact same connection strings as above, inserts to both databases are aggregated into the same DB.
I can (and am now) running a copy of clickhouse-bulk per database, but this seems sub-optimal. Absolute minimum case, clickhouse-bulk should reject queries sent to
/newdb
if it is only going to insert into a single DB.