mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-14 19:14:45 +00:00
Add more documentation to SpecialGadgetUsage::getQueryInfo()
Change-Id: I69dacb13034dd051534ff9d3700597f778f5bcb1
This commit is contained in:
parent
f982f4c117
commit
01eb0ac9b9
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue