Skip to content

Commit

Permalink
feat: add drop and recreation of index to synchronizer
Browse files Browse the repository at this point in the history
  • Loading branch information
n00m4d committed Dec 12, 2024
1 parent 6a18d6b commit cbf822b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions postgre-client/src/load_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ impl PgClient {
"assets_v3_is_frozen",
"assets_v3_supply",
"assets_v3_slot_updated",
"assets_v3_is_collection_verified",
] {
self.drop_index(transaction, index).await?;
}
Expand Down Expand Up @@ -219,6 +220,7 @@ impl PgClient {
("assets_v3_is_frozen", "assets_v3(ast_is_frozen) WHERE ast_is_frozen IS TRUE"),
("assets_v3_supply", "assets_v3(ast_supply) WHERE ast_supply IS NOT NULL"),
("assets_v3_slot_updated", "assets_v3(ast_slot_updated)"),
("assets_v3_is_collection_verified", "assets_v3(ast_is_collection_verified) WHERE ast_is_collection_verified IS NULL OR ast_is_collection_verified = TRUE"),
]{
self.create_index(transaction, index, on_query_string).await?;
}
Expand Down

0 comments on commit cbf822b

Please sign in to comment.