Add more documentation to SpecialGadgetUsage::getQueryInfo()

Change-Id: I69dacb13034dd051534ff9d3700597f778f5bcb1
This commit is contained in:
Kaldari 2015-12-18 14:48:40 -07:00
parent f982f4c117
commit 01eb0ac9b9

View file

@ -50,7 +50,16 @@ class SpecialGadgetUsage extends QueryPage {
}
/**
* SQL Query being used:
* Define the database query that is used to generate the stats table.
* This uses 1 of 2 possible queries, depending on $wgSpecialGadgetUsageActiveUsers.
*
* The simple query is essentially:
* SELECT up_property, SUM(up_value)
* FROM user_properties
* WHERE up_property LIKE 'gadget-%'
* GROUP BY up_property;
*
* The more expensive query is:
* SELECT up_property, SUM(up_value), count(qcc_title)
* FROM user_properties
* LEFT JOIN user ON up_user = user_id