Skip to content

Commit 7f5a466

Browse files
Update pick-keys.md
1 parent 622d496 commit 7f5a466

File tree

1 file changed

+4
-0
lines changed
  • content/en/engines/mergetree-table-engine-family

1 file changed

+4
-0
lines changed

content/en/engines/mergetree-table-engine-family/pick-keys.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ ORDER BY (tenantid, site_id, eventid) -- utm_source is mutable, while tenantid,
6363
PRIMARY KEY (tenantid, site_id) -- eventid is not used for filtering, needed only for collapsing duplicates
6464
```
6565

66+
Also read about LIGHT ORDER BY for speeding FINAL queries - https://kb.altinity.com/altinity-kb-queries-and-syntax/altinity-kb-final-clause-speed/#light-order-by
67+
6668
### ORDER BY example
6769

6870

@@ -234,3 +236,5 @@ For the small tables (smaller than few gigabytes) partitioning is usually not ne
234236
235237
* [How to change ORDER BY](/altinity-kb-schema-design/change-order-by/)
236238
* [ClickHouse Anti-Patterns: Learning from Users\' Mistakes](https://youtu.be/DP7l6Swkskw?t=3777), a short talk by Mikhail Filimonov
239+
* Clickhouse Documentation - https://clickhouse.com/docs/data-modeling/schema-design#choosing-an-ordering-key
240+

0 commit comments

Comments
 (0)