It looks that 17+% of user_properties rows is used by GrowthExperiments code. That's a lot of rows – I think we should invest some effort into removing the rows we don't actually need, consolidate some properties (eg. as part of T284088: Merge preference "Enable the editor help panel" with "Display the newcomer homepage" together) etc.
This is a table with number of GrowthExperiments-related rows at a couple of wikis (mostly Growth team pilot wikis and wikis that have the features for the longest time now):
In [23]: pivot_df.sort_values('Growth %', ascending=False) Out[23]: Variable Growth Growth_no_mentorship Total Growth % wiki arwiki 2436441 2237462 14499219 16.80 viwiki 778427 715775 5022918 15.50 kowiki 431262 391826 3449192 12.50 cswiki 297077 270141 2570822 11.56 frwiki 2043960 1899497 22215626 9.20 bnwiki 162257 156591 2107438 7.70 In [24]:
This is the list of properties occupying the most rows:
mysql:research@dbstore1007.eqiad.wmnet [cswiki]> select up_property, count(*) from user_properties where up_property like 'growthexperiments-%' or up_property='welcomesurvey-responses' group by up_property having count(*) > 1500 order by count(*) desc; +--------------------------------------------------------+----------+ | up_property | count(*) | +--------------------------------------------------------+----------+ | growthexperiments-help-panel-tog-help-panel | 40789 | | growthexperiments-homepage-enable | 35194 | | growthexperiments-homepage-pt-link | 35035 | | growthexperiments-tour-help-panel | 32918 | | growthexperiments-tour-homepage-mentorship | 32007 | | growthexperiments-mentor-id | 26936 | | growthexperiments-tour-homepage-discovery | 20520 | | growthexperiments-homepage-variant | 19715 | | growthexperiments-tour-homepage-welcome | 17258 | | growthexperiments-homepage-suggestededits-activated | 12661 | | growthexperiments-homepage-suggestededits-preactivated | 7211 | | growthexperiments-homepage-se-filters | 6098 | | growthexperiments-homepage-se-ores-topic-filters | 4030 | | welcomesurvey-responses | 2793 | | growthexperiments-homepage-tutorial-completed | 2646 | +--------------------------------------------------------+----------+ 15 rows in set (0.107 sec) mysql:research@dbstore1007.eqiad.wmnet [cswiki]>
growthexperiments-mentor-id will be dealt with separately, as part of T304461: Delete `growthexperiments-mentor-id` properties from user_properties, as the rows are no longer necessary.