Skip to content

Commit

Permalink
Merge pull request #59 from goenning/patch-1
Browse files Browse the repository at this point in the history
typo
  • Loading branch information
den-crane authored Oct 11, 2023
2 parents 0bda174 + b72fb94 commit c33f932
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 c33f932

Please sign in to comment.