You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One possible way to implement this is to follow steps
Create a new table tx_out_use_address with the same schema as tx_out with enabled use_address_table
Query pages of the tx_out table. For each page, extract the address related fields and insert them into the address table and use the returned address.id to create a use_address_table page.
The (address.id, address) pairs should be cached. Since db-sync won't have parsed the ledger state yet, meaning enough available memory, it could cache all of the entries without evicting any.
When all pages are complete, drop the tx_out table and rename tx_out_use_address to tx_out
Clean the address pairs from the cache.
Start db-sync
It's not trivial at all and the migration will still take some time.
Cmdv
linked a pull request
Oct 31, 2024
that will
close
this issue
It was asked on our discord
The current answer is yes but we could provide some form of migration if the database is already populated.
Investigate if this is possible to do as part of the schema variation when using
use_address_table
configThe text was updated successfully, but these errors were encountered: