We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 144585d commit 7e4530fCopy full SHA for 7e4530f
internal/tools/clickhouse/0002_clickhouse_create_logs_table.sql
@@ -37,16 +37,23 @@ CREATE TABLE IF NOT EXISTS logs (
37
transaction_index,
38
log_index
39
),
40
- PROJECTION chain_topic0_projection
+ PROJECTION chain_address_block_number_full_projection
41
+ (
42
+ SELECT
43
+ *
44
+ ORDER BY
45
+ chain_id,
46
+ address,
47
+ block_number
48
+ ),
49
+ PROJECTION chain_topic0_full_projection
50
(
51
SELECT
- _part_offset
52
53
ORDER BY
54
chain_id,
55
topic_0,
56
block_number,
- transaction_index,
- log_index,
57
address
58
59
PROJECTION address_topic0_state_projection
0 commit comments