Sorry, I had been discussing with some others and had used toDay() to
keep it simpler.
Yes, I've been using toYYYYMMDD(), not toDay().
And had recently switched from toHour() instead of toYYYYMMDD()
Yeah, I'm aware of the ClickHouse preferences for number of
partitions, thanks to the recent excellent ClickHouse Query
Performance, which prompted me to re-assess my partitioning strategy.
My impression was ClickHouse was design for monthly partitioning, but
now is more general purpose.
The key is to pick a partition that matches the typical query such
that you get back hundreds of partitions.
For my current use case, I have data that may cover a weeks worth of
time, and queries that cover a time interval of 3-8 hours, so
partitioning by toYYYYMMDD() is not very helpful at all, so I switched
to toHour().
And then had a second use case of data that only covers 1 day, so
realized for that use case I really need toMinute().
But then realized I need toStartOfHour() and toStartOfMinute(), but
thought I'd ask here to make sure my understanding is correct.
So I think I just goofed when I went from toYYYYMMDD() to toHour()
instead of toStartOfHour().
Thanks for the quick reply and hashing it out with me, I think I'm own
track now!
> --
> 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/fa165950-8a4c-476b-96c2-6d1333bdc644%40googlegroups.com.