i-norden
85bc243896
drop tx_data and log_data; data can still be accessed in referenced ipld blocks in public.blocks
2023-02-08 18:13:15 -06:00
i-norden
f67f03481b
renaming some columns; remove log_root column
2023-02-08 18:08:08 -06:00
i-norden
29e2bd4e7b
remove 00023 get storage functions; they were broken by these changes and would need to be refactored, but with the v5 changes we shouldn't need them anymore
2023-02-01 20:20:01 -06:00
986ce1ead8
Update behavior back to a comprehensive JOIN on state_path if we came up empty in our optimized check. ( #118 )
2023-02-01 20:17:06 -06:00
268a282eac
Draft: Split get_storage_at into two paths: one optimistic and simple, the other more comprehensive but slower. ( #117 )
...
* Split get_storage_at into two paths: one optimisic and simple, the other more exhaustive but slower.
* Remove is null check
* Fix name
* Update comment
2023-02-01 20:16:35 -06:00
53461a0996
Add new indexes and functions to improve eth_getStorageAt performance. ( #116 )
...
* New indexes and functions to implement get_storage_at as a function.
* Update schema.sql.
2023-02-01 20:16:11 -06:00
i-norden
26d970ed2f
remove times_validated field
2023-02-01 20:03:12 -06:00
i-norden
f3c58e39ca
node_id => node_ids
2023-02-01 19:56:36 -06:00
i-norden
2165b316fa
remove snapshot functions (they wont work without intermediate node indexing); adjust remaining functions
2023-01-23 17:31:36 -06:00
i-norden
713f6a9208
add removed flag; embed value in storage_cids
2023-01-23 17:30:33 -06:00
i-norden
241bb281eb
state_cids and storage_cids only index leaf nodes and related adjustments
2023-01-23 17:08:20 -06:00
i-norden
a9755c6ecc
update schema
2022-08-30 12:19:48 -05:00
i-norden
7f8247cb4f
revert hash indexes; add eth probes tables
2022-08-30 12:05:51 -05:00
i-norden
475ead282b
remove known_gaps table
2022-08-15 11:11:19 -05:00
i-norden
2bf5c82150
replace btree with hash index where it makes sense
2022-08-08 12:40:47 -05:00
i-norden
0856168b92
misc adjustments
2022-08-08 11:06:00 -05:00
prathamesh0
be345e0733
Use a specific tag while building migration tool ( #101 )
2022-07-22 11:44:07 +05:30
prathamesh0
b59505eab2
Add block hash to primary keys in transactions, receipts and logs tables ( #100 )
...
* Add block hash to primary keys in transactions, receipts and logs tables
* Add block hash in postgraphile triggers for transactions, receipts and logs tables
* Make indexes on transaction cid and mh_key non-unique
2022-07-07 16:21:06 +05:30
Abdul Rabbani
65b7bee7a6
Update the go-version in build container
2022-06-20 09:23:39 -04:00
prathamesh0
a44724c3d7
Fix stored functions for in-place snapshot ( #87 )
2022-06-14 11:00:54 +05:30
49daf851cc
Run migrations on a single-node TimescaleDB setup
2022-05-17 15:50:55 +05:30
bc68969abb
Fix migrations naming after merge
2022-05-10 19:34:01 +05:30
d0f5110dec
Update Dockerfile to run migrations
2022-05-10 16:22:35 +05:30
0ccb54c770
Skip migration to create hypertables
2022-05-10 10:05:28 +05:30
33b293f2bb
Fix migrations naming
2022-05-09 17:22:19 +05:30
70cf01ff27
Create stored functions after creating distributed hypertables
2022-05-04 15:48:20 +05:30
06d9ef96e7
Multi-node setup to run the migrations
2022-04-29 10:51:40 +05:30
ee2f43a849
Remove foreign keys to hypertables
2022-04-22 18:53:43 +05:30
i-norden
673ae7b265
fixes, PKs need to include partition key
2022-04-12 21:56:27 -05:00
i-norden
3b4e097f00
remove pre and post migrations sets
2022-04-12 21:12:03 -05:00
i-norden
caf99f7194
use state leaf key in storage_cids FK
2022-04-12 21:11:36 -05:00
i-norden
2816de15a3
migrations for hypertables and distributed hypertables
2022-04-06 18:44:19 -05:00
i-norden
201cadbd49
update the pre- and post- batch sets with new meta schema and tables
2022-03-31 12:45:27 -05:00
Abdul Rabbani
63e3d66cc1
Merge branch 'main' into feature/known_table
2022-03-31 12:07:28 -04:00
Abdul Rabbani
2ffb98c6f7
Change file name
2022-03-31 12:06:11 -04:00
Abdul Rabbani
b2f8f63a65
Update file name
2022-03-31 10:47:29 -04:00
Abdul Rabbani
e99787242e
Add Migration file
2022-03-31 10:45:11 -04:00
i-norden
da8d0af6df
updates order of columns in compound PKs, update indexes e.g. we don't need a btree index on a column if it is the first column in the compound PK index but we do need a btree index for the later columns in a compound PK (searches on first column of a compound index are just as fast as searches on a btree index for that column alone, but searches on the 2nd or 3rd column in a compound index are significantly slower than on dedicated indexes)
2022-03-28 18:22:57 -05:00
i-norden
82de252160
stored functions for creating state and storage snapshots from the set of all diffs in Postgres
2022-03-28 18:20:29 -05:00
i-norden
ba2550cc01
update pre- and post- sets
2022-03-21 19:53:48 -05:00
a500c1a49a
Add table for watched addresses in eth_meta schema
2022-03-17 19:02:05 +05:30
i-norden
1dc12460dc
denormalize tables by block_number so that we can partition all tables by block_number for purposes of sharding
2022-03-15 16:06:13 -05:00
i-norden
f59582ab42
indexes on receipt cid and mh_key should not be unique, as it is possible (but improbable) that two receipts can be identical
2022-02-16 14:11:23 -06:00
i-norden
9e7e0377a5
split pk application into two parts
2022-01-26 13:01:41 -06:00
i-norden
0710ed1bb1
drop un-unique indexes
2022-01-25 12:31:59 -06:00
i-norden
1088313ab7
prep for integrated node of v3
2022-01-25 08:29:25 -06:00
i-norden
edabfcc9c9
migration for applying log_cids.leaf_mh_key FK constraint to check that repair process was completed
2022-01-19 15:21:29 -06:00
i-norden
ae1a6e9d31
disable and renable indexes correctly
2022-01-10 21:51:04 -06:00
i-norden
a2c98550b7
mig to upgrade schema version in db; mig to remove temporary indexes for logTrie fix
2022-01-10 12:13:49 -06:00
i-norden
4ad1250ea1
split out new post-batch migration for indexes that will accelerate our logTrie repair process
2022-01-10 11:53:55 -06:00