Flushing buffer tables before restarting clickhouse

524 views
Skip to first unread message

Kenji

unread,
Mar 11, 2021, 3:36:51 PM3/11/21
to ClickHouse
I have a BUFFER engine table that is attached to a MergeTree table for persistence.

Does CH flush the content of BUFFER tables to the persistent table when the CH server process is being shutdown?

For now,  I run "OPTIMIZE TABLE mybuffertable"  to flush it before shutting it down.

-kenji

Denis Zhuravlev

unread,
Mar 11, 2021, 6:07:56 PM3/11/21
to ClickHouse
When the server is stopped, with DROP TABLE or DETACH TABLE, buffer data is also flushed to the destination table.

Kenji

unread,
Mar 11, 2021, 7:06:09 PM3/11/21
to Denis Zhuravlev, ClickHouse
Great! I should've read the doc more carefully. Thanks!
> --
> You received this message because you are subscribed to the Google Groups "ClickHouse" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clickhouse+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clickhouse/b25c2935-398b-4c73-9549-3075b6887bbcn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages