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

Deprecate table country_latest_data #3742

Open
Marigold opened this issue Jun 25, 2024 · 1 comment
Open

Deprecate table country_latest_data #3742

Marigold opened this issue Jun 25, 2024 · 1 comment
Labels
cleanup ops Devops related issues (stagings servers, ...) priority 3 - nice to have

Comments

@Marigold
Copy link
Contributor

One of our largest tables is country_latest_data. It's apparently used for country pages, but no one knows why. The table is just data_values in disguise. Apparently it is updated by something, but I wonder whether we even use for anything at all.

+----------+---------------------------+-----------+
| Database | Table                     | Size (MB) |
+----------+---------------------------+-----------+
| owid     | variables                 |    614.39 |
| owid     | country_latest_data       |    339.13 |
| owid     | chart_revisions           |    137.72 |
| owid     | posts                     |    118.61 |
| owid     | suggested_chart_revisions |     87.66 |

Some values for 2024 (this doesn't necessarily mean they were created in 2024!)

mysql> select * from country_latest_data where year = 2024 limit 10;
+--------------+-------------+------+---------+
| country_code | variable_id | year | value   |
+--------------+-------------+------+---------+
| BDI          |      521018 | 2024 | 340868  |
| COM          |      521018 | 2024 | 37730   |
| DJI          |      521018 | 2024 | 53887   |
| ERI          |      521018 | 2024 | 155581  |
| ETH          |      521018 | 2024 | 4148801 |
| KEN          |      521018 | 2024 | 1662357 |
| MDG          |      521018 | 2024 | 1078654 |
| MWI          |      521018 | 2024 | 537527  |
| MUS          |      521018 | 2024 | 180185  |
| MYT          |      521018 | 2024 | 10603   |
+--------------+-------------+------+---------+
10 rows in set (2.72 sec)
@danyx23 danyx23 added the ops Devops related issues (stagings servers, ...) label Jul 26, 2024
@marcelgerber
Copy link
Member

#3781 might make some leeway toward getting rid of old-style country profiles.
We'll wait it out for a bit, still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup ops Devops related issues (stagings servers, ...) priority 3 - nice to have
Projects
None yet
Development

No branches or pull requests

3 participants