Addshore added a comment.

After some experimenting I managed to add a bunch of keys to the ignore which are probably fine to ignore:

$ignore = array(
	'language',
	'site',
	'type',
	'hash',
	'id',
	'rank',
	'entity-type',
	'datatype',
	'snaktype',
	'qualifiers-order',
	'property',
);

For Q56596767 on wikidata.org running collectValues:
Before:
Total execution time: 1.4714670181274
Number of strings: 30426
After:
Total execution time: 0.12493205070496
Number of strings: 4673

I have no doubt that this will have knock on effects in Abusefilter, probably reducing the run time by ~60%?

/me should file some tickets.....


TASK DETAIL
https://phabricator.wikimedia.org/T204109

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Addshore
Cc: Addshore, Krinkle, Aklapper, Lahi, Gq86, Darkminds3113, GoranSMilovanovic, QZanden, LawExplorer, Vali.matei, Volker_E, Wikidata-bugs, aude, GWicke, Dinoguy1000, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to