clrnd / discogs2pg

Discogs to PostgreSQL importer
BSD 3-Clause "New" or "Revised" License
35 stars 8 forks source link

Add Foreign Keys to the tables #8

Open danielvanmil opened 3 years ago

danielvanmil commented 3 years ago

Foreign Keys are commented, what's the reason for this? (it can be very handy when using graphql tools like Hasura etc.)

clrnd commented 3 years ago

I don't remember why, I think it was because if we have FKs then we need to insert things in order, I think you can just add them after importing, did you try that?

clrnd commented 3 years ago

Wait indexes already are meant to be run afterwards. They are commented because some entries don't respect them. Feel free to tinker around with any index combination you like and submit a PR!