Clickhouse - create table is always a table in memory, How do I create table with a specific engine - MergeTree #4402
-
Hi, I'm trying to write code that generates tables on the fly when they don't exist. Problem is they always end up being of type memory. I know using straight SQL will fix this but, I'm unsure of how to either A: Generate the SQL with the specific properties needed or B: specific the type of engine on creation This is my current version (I have tried this with AsClickhouse()) using the Clickhouse.Client as provider ` _connection = connection;
}` and I end up always with Memory which means my data keeps disappearing after a while. Any help or advice would be appreciated, thank you. end result if possible: `-- drop developerlog table and recreate with mergetree CREATE TABLE DeveloperLog I haven't been able to find any docs or code examples for this situation |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You need to define a PrimaryKey for your table. But I think we need to add explicit API. |
Beta Was this translation helpful? Give feedback.
You need to define a PrimaryKey for your table.
But I think we need to add explicit API.