-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add property maps indexing to collections v2 #437
Conversation
@@ -0,0 +1,5 @@ | |||
ALTER TABLE current_collections_v2 | |||
DROP COLUMN collection_properties; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add IF EXISTS
Need to also update the insert query and backfill query. Could you specify the backfill versions for testnet and mainnet? It should be the first version that had a collection |
could you elaborate? @rtso |
@@ -354,6 +354,7 @@ fn insert_current_collections_v2_query( | |||
table_handle_v1.eq(excluded(table_handle_v1)), | |||
token_standard.eq(excluded(token_standard)), | |||
last_transaction_version.eq(excluded(last_transaction_version)), | |||
collection_properties.eq(excluded(collection_properties)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to update insert_collections_v2_query so that it backfills the new column
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated!
ca260c8
to
73cd024
Compare
73cd024
to
d2e1cea
Compare
backfill:
testnet: 18589
mainnet: 169280