Consolidate old analytics #773
-
Currently, looks like Plausible keeps all analytics inside Clickhouse. On my Plausible node, which isn't even used on websites too trafficked, the size of the Clickhouse DB keeps growing steadily. It's already many GBs in size, and of course all of that comes with a cost. Can you please look into a way to consolidate months-old analytics? It's probably not necessary to keep each visit in the OLAP database, and could be periodically aggregated and consolidated into the OLTP one. Otherwise, sooner or later it will become unsustainable! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Let's see what's actually taking up the space. Please connect to your Clickhouse DB and paste the output of the following query: SELECT table,
formatReadableSize(sum(bytes)) as size,
FROM system.parts
WHERE active
GROUP BY table |
Beta Was this translation helpful? Give feedback.
Let's see what's actually taking up the space. Please connect to your Clickhouse DB and paste the output of the following query: