Skip to content

Commit 990209f

Browse files
committed
Speedup test
1 parent 965edc1 commit 990209f

File tree

2 files changed

+4
-22
lines changed

2 files changed

+4
-22
lines changed
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
LazilyRead (Lazily Read)
2+
0
23
1 blob_
34
2 blob_blob_
45
3 blob_blob_blob_
@@ -8,12 +9,3 @@ LazilyRead (Lazily Read)
89
7 blob_blob_blob_blob_blob_blob_blob_
910
8 blob_blob_blob_blob_blob_blob_blob_blob_
1011
9 blob_blob_blob_blob_blob_blob_blob_blob_blob_
11-
999999 blob_blob_blob_blob_blob_blob_blob_blob_blob_
12-
999998 blob_blob_blob_blob_blob_blob_blob_blob_
13-
999997 blob_blob_blob_blob_blob_blob_blob_
14-
999996 blob_blob_blob_blob_blob_blob_
15-
999995 blob_blob_blob_blob_blob_
16-
999994 blob_blob_blob_blob_
17-
999993 blob_blob_blob_
18-
999992 blob_blob_
19-
999991 blob_
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DROP TABLE IF EXISTS pr_tt;
2-
CREATE TABLE pr_tt (k UInt64, v String, blob String) ENGINE=MergeTree() ORDER BY tuple() settings index_granularity=10;
2+
CREATE TABLE pr_tt (k UInt64, v String, blob String) ENGINE=MergeTree() ORDER BY tuple() settings index_granularity=100;
33
INSERT INTO pr_tt SELECT number, toString(number), repeat('blob_', number % 10) FROM numbers(1_000_000);
44

55
-- make sure the optimization is enabled
@@ -11,24 +11,14 @@ SELECT
1111
v,
1212
blob
1313
FROM pr_tt
14-
WHERE k % 10
1514
ORDER BY k ASC
16-
LIMIT 9 settings parallel_replicas_local_plan=1) where s ilike 'LazilyRead%';
15+
LIMIT 10 settings parallel_replicas_local_plan=1) where s ilike 'LazilyRead%';
1716

1817
SELECT
1918
v,
2019
blob
2120
FROM pr_tt
22-
WHERE k % 10
2321
ORDER BY k
24-
LIMIT 9;
25-
26-
SELECT
27-
v,
28-
blob
29-
FROM pr_tt
30-
WHERE k % 10
31-
ORDER BY k desc
32-
LIMIT 9;
22+
LIMIT 10;
3323

3424
DROP TABLE pr_tt;

0 commit comments

Comments
 (0)