Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
goenning authored Oct 11, 2023
1 parent 0bda174 commit b72fb94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Practical approach to create an good ORDER BY for a table:
special variants of MergeTree may require special ORDER BY to make the record unique etc.
7. For timeseries it usually make sense to put timestamp as latest column in ORDER BY, it helps with putting the same data near by for better locality. There is only 2 major patterns for timestamps in ORDER BY: (..., toStartOf(Day|Hour|...)(timestamp), ..., timestamp) and (..., timestamp). First one is useful when your often query small part of table partition. (table partitioned by months and your read only 1-4 days 90% of times)

Some examples or good order by
Some examples of good order by
```
ORDER BY (tenantid, site_id, utm_source, clientid, timestamp)
```
Expand Down

0 comments on commit b72fb94

Please sign in to comment.