Closed liZe closed 3 years ago
This PR could be improved, but I don’t think that it would be really useful.
We compare info
to {'id': '','city': '','state': '','street': '','country': '','facility': ''}
. We could filter on dictionaries where values are empty-ish, but that would require a more complex request. We only have {'id': '','city': '','state': '','street': '','country': '','facility': ''}
in database according to the Phabricator issue and to what I have in the backup database, I think that it’s useless to have a better request.
We use chunks, but it’s slow. I can change this if needed, as we have to remove more than ~35 million~ 3 million lines.
Tests are simple, they cover all the code lines and the common use cases, but I can improve them.
- We use chunks, but it’s slow. I can change this if needed, as we have to remove more than 35 million lines.
Edit: it’s more than 3 million.
Events with empty location info are now ignored, but they used to be accepted and put in the database. This command removes these useless empty locations from the database.
Fix https://phabricator.endlessm.com/T29561. Related to #115.