Skip to content
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

Keep only cities, states, and countries with media #307

Open
bruvellu opened this issue Jul 6, 2024 · 1 comment
Open

Keep only cities, states, and countries with media #307

bruvellu opened this issue Jul 6, 2024 · 1 comment
Labels
improvement Issues with improvements for existing features

Comments

@bruvellu
Copy link
Owner

bruvellu commented Jul 6, 2024

I was revising our translation pipeline and ran into an issue—the large number of cities in our database.

City names are currently translatable fields (New York, Nova Iorque) and these translatable model fields are synchronized with the locale PO files from time to time. With that many cities, this synchronization process takes very long.

That made me wonder, do we even need all these cities? Most will never have any media associated with them. It's just bloat to the database, making location queries slower.

We have all the Brazilian cities in the database for the metadata to be filled without mistakes. That works, but perhaps there's a better way?

There are probably libraries that provide this information. The metadata form can fetch this information dynamically and autocomplete. I'll compile the options here to see which might work best for our use case.

Meanwhile, I'll just disable translations for cities, for now.

@bruvellu bruvellu added the improvement Issues with improvements for existing features label Jul 6, 2024
@bruvellu
Copy link
Owner Author

I'll keep this issue open as an improvement for the future

@bruvellu bruvellu reopened this Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Issues with improvements for existing features
Projects
None yet
Development

No branches or pull requests

2 participants