Skip to content
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

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

jillxuu
Copy link
Contributor

@jillxuu jillxuu commented Jul 1, 2024

Screenshot 2024-07-01 at 2 05 24 PM

backfill:
testnet: 18589
mainnet: 169280

@jillxuu jillxuu requested review from BriungRi, JohnChangUK and a team July 1, 2024 21:06
@@ -0,0 +1,5 @@
ALTER TABLE current_collections_v2
DROP COLUMN collection_properties;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add IF EXISTS

@rtso
Copy link
Collaborator

rtso commented Jul 1, 2024

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

@jillxuu
Copy link
Contributor Author

jillxuu commented Jul 1, 2024

Need to also update the insert query and backfill query.

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)),
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated!

@jillxuu jillxuu force-pushed the jill/add-collection-property-maps branch from ca260c8 to 73cd024 Compare July 1, 2024 23:26
@jillxuu jillxuu requested a review from rtso July 1, 2024 23:27
@jillxuu jillxuu force-pushed the jill/add-collection-property-maps branch from 73cd024 to d2e1cea Compare July 1, 2024 23:29
@jillxuu jillxuu requested a review from a team July 2, 2024 21:04
@jillxuu jillxuu merged commit ec4210f into main Jul 8, 2024
7 checks passed
@jillxuu jillxuu deleted the jill/add-collection-property-maps branch July 8, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants