Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Replace addresses across all Postgres tables with fk references to a separate addresses table #105

Open
i-norden opened this issue Jun 18, 2019 · 1 comment

Comments

@i-norden
Copy link
Collaborator

Originally recommended by @ramilexe, this will reduce redundancy in our database and should improve index performance. This work is potentialy relevant to multiple work streams, putting this here in part so that we make sure not to duplicate this effort!

@i-norden
Copy link
Collaborator Author

i-norden commented Dec 4, 2019

PR #126 addresses this issue.

I think there are still a few places where we need to update to using the FK reference though e.g. in 00017_create_log_filters.sql and the new cid tables (00034_create_receipt_cids.sql contract field, and 00035_create_state_cids.sql could reference the addresses.hashed_address for its state_key field)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant