Last modified: 2013-11-23 12:27:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54642, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52642 - Query data: Add #ask query duration (execution time)
Query data: Add #ask query duration (execution time)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 41842
  Show dependency treegraph
 
Reported: 2013-08-08 09:41 UTC by MWJames
Modified: 2013-11-23 12:27 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MWJames 2013-08-08 09:41:22 UTC
Add query duration as meta data

Query duration is designed as opt-in preference (default smwgQueryDurationEnabled = false) while enabling (smwgQueryDurationEnabled = true) requires to run update.php.
Comment 1 Gerrit Notification Bot 2013-08-08 09:43:53 UTC
Change 78223 had a related patch set uploaded by Mwjames:
(Bug 52642) Add query duration as meta data

https://gerrit.wikimedia.org/r/78223
Comment 2 Jamie Thingelstad 2013-08-09 02:35:20 UTC
Woot! Thanks James!
Comment 3 Jamie Thingelstad 2013-08-18 20:24:18 UTC
If you guys need someone to test this I would happily enable it on my farm.
Comment 4 MWJames 2013-08-18 20:38:48 UTC
You can test the patch if you want all necessary tests did pass. 

I didn't wanted to merge this because internally I wanted to use the Dependency Injection Framework for some of the object which from the outside doesn't make any difference.

If you test the patch '$smwgQueryDurationEnabled' needs be set true (default is false) and you have to run update.php because the special property _ASKDU expects a table.
Comment 5 Jamie Thingelstad 2013-08-18 20:56:09 UTC
I cherry picked it out of Gerrit.

git fetch https://gerrit.wikimedia.org/r/mediawiki/extensions/SemanticMediaWiki refs/changes/23/78223/4 && git checkout FETCH_HEAD

LocalSettings.php has

$smwgQueryDurationEnabled = true;

Update gave me:

Checking table `smw_fpt_askdu` ...
   Table not found, now creating...
   ... done.

But not seeing any duration information in the query objects. I'm guessing this is something I didn't setup right.

http://wikiapiary.com/wiki/Special:Browse/WikiApiary-23_QUERYc0dc85bc9bda16e78791fe45c936bc64
Comment 6 MWJames 2013-08-18 21:08:49 UTC
I remember I changed the configuration into:

$smwgQueryDataUsage = array(
	'smwgQueryDurationEnabled' => true,
);
Comment 8 Jamie Thingelstad 2013-11-05 12:39:48 UTC
Using the current master of Semantic MediaWiki it doesn't appear that this was ever integrated into the final release. I have the setting declared but nothing is being stored and I didn’t see it in the release notes. Did this ridiculously great feature not make the cut?
Comment 9 Jeroen De Dauw 2013-11-05 12:51:53 UTC
First time I see it :)
Comment 10 MWJames 2013-11-05 13:10:27 UTC
This happens with the low-hanging fruits ...., I'll have shot at it later. By the way I'm think of renaming it from QueryDuration to QueryTime any opinions on that?
Comment 11 Jamie Thingelstad 2013-11-05 15:24:32 UTC
+1 for QueryTime.

Would love to get this in 1.9 so I could start collecting data using it from Semantic MediaWiki sites via WikiApiary.
Comment 12 Jeroen De Dauw 2013-11-05 15:36:41 UTC
"query time" is a bit misleading, I'd expect this to mean the time at which the query was executed. "query duration" OTOH is quite clear.
Comment 13 MWJames 2013-11-05 16:42:22 UTC
(In reply to comment #12)
> "query time" is a bit misleading, I'd expect this to mean the time at which
> the
> query was executed. "query duration" OTOH is quite clear.

and QueryDuration it is ...

(In reply to comment #11)
> +1 for QueryTime.
> 
> Would love to get this in 1.9 so I could start collecting data using it from
> Semantic MediaWiki sites via WikiApiary.

Remember QueryDuration is a trend value which captures the current performance of a query and therefore should be used as mean value over a time period but of course for a general trend analysis such as (Top 10 Best and Worst) it will generally yield sufficient representation.
Comment 14 Jeroen De Dauw 2013-11-06 17:26:08 UTC
> Would love to get this in 1.9 so I could start collecting data using it from
> Semantic MediaWiki sites via WikiApiary.

So you know what the best query candidates are for DoS'ing someone :D
Comment 15 Gerrit Notification Bot 2013-11-22 06:09:09 UTC
Change 78223 abandoned by Mwjames:
(Bug 52642) Add query duration as meta data option

Reason:
Due to issues with Jenkins moved to [1].

[1] https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/30

https://gerrit.wikimedia.org/r/78223
Comment 16 MWJames 2013-11-22 06:11:35 UTC
Settings have been changed to:

$smwgQueryProfiler = array(
	'smwgQueryDurationEnabled' => true,
);
Comment 17 Jeroen De Dauw 2013-11-22 18:23:08 UTC
https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/30 has been merged \o/
Comment 18 Jamie Thingelstad 2013-11-23 12:27:37 UTC
and the crowd roared with excitement! :-)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links