Background
In 2021, the Growth-Team moved the mentor/mentee relationship to a separate database table to make a certain type of queries possible/easier. This was done as part of T275773: Move mentor/mentee relationship to a separate database table to make it possible to run more queries on it (Wikimedia specific migration was T279853). We left the growthexperiments-mentor-id rows in user_properties, but those rows are not necessary anymore and can be removed safely.
Problem & Solution
The user_properties table is a large ever-growing table that's already quite large (T54777). Rows identified as not useful should be removed from it as part of housekeeping/maintenance.
Notes
I checked how many rows we would be able to delete, to check whether doing something about mentorship property rows can significantly decrease the size of user_properties. It appears that on some of Growth wikis, the growthexperiments-mentor-id properties represent more than a 1% of user_properties – see below for details.
wiki | Mentorship | Total | % |
---|---|---|---|
arwiki | 198979 | 14499205 | 1.37 |
viwiki | 62652 | 5022918 | 1.25 |
kowiki | 39436 | 3449187 | 1.14 |
cswiki | 26936 | 2570798 | 1.05 |
frwiki | 144463 | 22215468 | 0.65 |
bnwiki | 5666 | 2107438 | 0.27 |
(was generated via P22987)