Example section for showcasing API endpoints
timestamp
column, you can configure these partitioning schemes as follows:
toYYYYMM(timestamp)
toStartOfWeek(timestamp)
toDate(timestamp)
toStartOfHour(timestamp)
order_id
, setting the partition key to intDiv(order_id, 1000000)
will generate the following partitions:
order_id
values 0–1,000,000order_id
values 1,000,000–2,000,000user_id
UUID column, the recommended partition key would be xxHash64(user_id) % 10
. This will generate up to 10 partitions, with user_ids
consistently distributed throughout.
user_id
, follow the instructions for mutable data above.
Can you change the partition key of a table?
What is a part in ClickHouse?
Are parts the same as partitions?