我有一个百亿详细数据查询的需求。100亿数据存储在Clickhouse中。我需要将数据库和表分开吗?我使用的表引擎是ReplicatedReplacingMergeTree,查询语句如下:
select * from table_a where name = 'akkj';
select * from table_b where name = 'bttc';
发布于 2021-04-28 22:44:15
不,您可以在单个表中存储任意数量的行。
我的作品:
SELECT count()
FROM fact_event_shard
┌───────count()─┐
│ 1415809324034 │
└───────────────┘select * from table_a where name = 'akkj';select * from table_b where name = 'bttc';
非常糟糕的主意。Clickhouse不喜欢这样的查询。你应该使用Cassandra,而不是Clichkouse。
https://stackoverflow.com/questions/67295207
复制相似问题