-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Clean up addresses #2249
Clean up addresses #2249
Conversation
Random thoughts from the placecal-ops channel: this is a bit of a rabbit hole. just found that addresses have a link to calendars BUT the calendar table has no FK, so if you event.calendars it just raises a "missing field" exception. |
$time rake db:clean_bad_addresses
found 1161163 addresses
1160881 orphaned addresses found
rake db:clean_bad_addresses 4.67s user 0.37s system 0% cpu 48:49.77 total
big improvement in speed (and num of addressed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌱 time for a spring clean
Closes #2005
A rake task
db:clean_bad_addresses
that deletes addresses that have no place, partner or event.Minor tidy up of Address and Event models.
But...
It looks like the calendar importer orphans addresses as it runs. Further investigation is needed as to where/why this is happening. (#2254)