Skip to content

Commit c796857

Browse files
committed
update ddl and results
1 parent b71ac51 commit c796857

File tree

5 files changed

+58
-32
lines changed

5 files changed

+58
-32
lines changed

hologres/ddl.sql

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
1+
set hg_experimental_enable_nullable_clustering_key = true;
12
CREATE TABLE bluesky (
2-
data JSONB NOT NULL
3-
);
3+
data JSONB NOT NULL,
4+
sort_key TEXT GENERATED ALWAYS AS (
5+
-- col1: kind
6+
CASE
7+
WHEN data ->> 'kind' IS NULL THEN '[NULL]'
8+
ELSE '[VAL]' || (data ->> 'kind')
9+
END || '|__COL1__|' ||
10+
11+
-- col2: operation
12+
CASE
13+
WHEN data -> 'commit' ->> 'operation' IS NULL THEN '[NULL]'
14+
ELSE '[VAL]' || (data -> 'commit' ->> 'operation')
15+
END || '|__COL2__|' ||
16+
17+
-- col3: collection
18+
CASE
19+
WHEN data -> 'commit' ->> 'collection' IS NULL THEN '[NULL]'
20+
ELSE '[VAL]' || (data -> 'commit' ->> 'collection')
21+
END || '|__COL3__|' ||
22+
23+
-- col4: did
24+
CASE
25+
WHEN data ->> 'did' IS NULL THEN '[NULL]'
26+
ELSE '[VAL]' || (data ->> 'did')
27+
END
28+
) STORED
29+
) WITH (clustering_key='sort_key');
430

531
ALTER TABLE bluesky ALTER COLUMN data SET (enable_columnar_type = ON);
632
CALL set_table_property('bluesky', 'dictionary_encoding_columns', 'data:auto');
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"system": "Alibaba Cloud Hologres",
33
"version": "r4.0",
4-
"date": "2025-09-12",
4+
"date": "2025-10-09",
55
"machine": "Hologres Instance 32CU",
66
"retains_structure": "yes",
77
"tags": [
88
],
99
"dataset_size": 1000000000,
10-
"num_loaded_documents": 993999604,
11-
"total_size": 113935090070,
10+
"num_loaded_documents": 996999604,
11+
"total_size": 127917465027,
1212
"result": [
13-
[1.28344,0.387996,0.394197],
14-
[14.0496,12.3343,13.6941],
15-
[1.63458,0.75316,0.754978],
16-
[3.82664,2.58757,2.50737],
17-
[3.60571,2.67633,2.66443]
13+
[0.871867,0.372306,0.368595],
14+
[13.9744,12.3741,12.3773],
15+
[1.18064,0.62016,0.641407],
16+
[2.00502,1.59837,1.59216],
17+
[2.05533,1.71199,1.70547]
1818
]
1919
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"system": "Alibaba Cloud Hologres",
33
"version": "r4.0",
4-
"date": "2025-09-12",
4+
"date": "2025-10-09",
55
"machine": "Hologres Instance 32CU",
66
"retains_structure": "yes",
77
"tags": [
88
],
99
"dataset_size": 100000000,
10-
"num_loaded_documents": 97999984,
11-
"total_size": 11157250421,
10+
"num_loaded_documents": 99999984,
11+
"total_size": 12601313624,
1212
"result": [
13-
[0.164415,0.060582,0.061967],
14-
[2.1726,1.81505,1.83729],
15-
[0.202728,0.096507,0.097319],
16-
[0.397231,0.249259,0.246972],
17-
[0.407714,0.265204,0.265106]
13+
[0.125652,0.058975,0.0578],
14+
[2.24972,1.85581,1.81485],
15+
[0.152823,0.081402,0.08157],
16+
[0.249986,0.217169,0.208558],
17+
[0.261454,0.218221,0.232391]
1818
]
1919
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"system": "Alibaba Cloud Hologres",
33
"version": "r4.0",
4-
"date": "2025-09-12",
4+
"date": "2025-10-09",
55
"machine": "Hologres Instance 32CU",
66
"retains_structure": "yes",
77
"tags": [
88
],
99
"dataset_size": 10000000,
1010
"num_loaded_documents": 9999997,
11-
"total_size": 1185315603,
11+
"total_size": 1301202397,
1212
"result": [
13-
[0.041749,0.026402,0.025736],
14-
[0.349737,0.282813,0.301415],
15-
[0.053863,0.033616,0.033054],
16-
[0.0812,0.055007,0.056155],
17-
[0.089086,0.061353,0.059887]
13+
[0.039704,0.026725,0.02526],
14+
[0.316713,0.305841,0.26521],
15+
[0.045679,0.042317,0.031781],
16+
[0.061012,0.050997,0.049643],
17+
[0.070111,0.054236,0.053687]
1818
]
1919
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"system": "Alibaba Cloud Hologres",
33
"version": "r4.0",
4-
"date": "2025-09-12",
4+
"date": "2025-10-09",
55
"machine": "Hologres Instance 32CU",
66
"retains_structure": "yes",
77
"tags": [
88
],
99
"dataset_size": 1000000,
1010
"num_loaded_documents": 1000000,
11-
"total_size": 121403438,
11+
"total_size": 134518668,
1212
"result": [
13-
[0.05821,0.024254,0.025168],
14-
[0.096473,0.05756,0.051771],
15-
[0.074038,0.025263,0.031265],
16-
[0.094472,0.035952,0.035384],
17-
[0.08237,0.047902,0.03876]
13+
[0.029467,0.021407,0.021018],
14+
[0.058642,0.045417,0.046737],
15+
[0.031809,0.023022,0.023018],
16+
[0.035425,0.026159,0.026751],
17+
[0.035892,0.028317,0.027894]
1818
]
1919
}

0 commit comments

Comments
 (0)