[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-20 Thread ItamarWMDE
ItamarWMDE updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T265562 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: ItamarWMDE Cc: Lucas_Werkmeister_WMDE, toan, hoo, Lydia_Pintscher, RolandUnger, Aklapper, Akuckartz,

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-20 Thread ItamarWMDE
ItamarWMDE updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T265562 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: ItamarWMDE Cc: Lucas_Werkmeister_WMDE, toan, hoo, Lydia_Pintscher, RolandUnger, Aklapper, Akuckartz,

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-19 Thread RolandUnger
RolandUnger added a comment. The Wikivoyage template vCard can use up to 50 statements per template (see table ParWD at Module:VCard/Params , too). About 5 `addStatementUsage` calls per template

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-19 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment. Halle (Saale) currently has some seven hundred statement usages: MariaDB [dewikivoyage]> SELECT COUNT(*) FROM wbc_entity_usage WHERE eu_page_id = (SELECT page_id FROM page WHERE page_namespace = 0 AND page_title = 'Halle_(Saale)') AND eu_aspect

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-19 Thread WMDE-leszek
WMDE-leszek updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T265562 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: WMDE-leszek Cc: Lucas_Werkmeister_WMDE, toan, hoo, Lydia_Pintscher, RolandUnger, Aklapper, Akuckartz,

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-19 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added subscribers: toan, Lucas_Werkmeister_WMDE. Lucas_Werkmeister_WMDE added a comment. @toan suggested getting old profiling reports from the Internet Archive; they have one Halle (Salle) snapshot from August 2020

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-19 Thread Lydia_Pintscher
Lydia_Pintscher moved this task from Prioritized Product to Wikidata-Campsite-Iteration-∞ on the Wikidata-Campsite board. Lydia_Pintscher edited projects, added Wikidata-Campsite (Wikidata-Campsite-Iteration-∞); removed Wikidata-Campsite. TASK DETAIL https://phabricator.wikimedia.org/T265562

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-19 Thread Lydia_Pintscher
Lydia_Pintscher added a comment. Mike_Peel and RexxS might be other people to ask if they've seen similar changes in their Lua usage. TASK DETAIL https://phabricator.wikimedia.org/T265562 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To:

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-19 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T265562 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: hoo, Lydia_Pintscher, RolandUnger, Aklapper, Akuckartz,

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-19 Thread Lydia_Pintscher
Lydia_Pintscher updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T265562 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lydia_Pintscher Cc: hoo, Lydia_Pintscher, RolandUnger, Aklapper, Akuckartz, darthmon_wmde, Nandana,

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-18 Thread RolandUnger
RolandUnger added a comment. If the bug is caused by cache limitations: Maybe a simple destructor `entity:remove()` would help. People told me that all entities are cached until the end of article parsing. But most of the entities are used in only one template and must not be cached any

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-18 Thread RolandUnger
RolandUnger added a comment. I tried to remove the museum section from https://de.wikivoyage.org/wiki/Halle_(Saale) and to stop using qualifiers and references from entities but the bug remained. But it seems that this bug depends on the number of entities loaded: -

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-16 Thread RolandUnger
RolandUnger added a comment. See also T189409 . TASK DETAIL https://phabricator.wikimedia.org/T265562 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RolandUnger Cc: hoo, Lydia_Pintscher, RolandUnger,

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-16 Thread RolandUnger
RolandUnger added projects: MediaWiki-extensions-WikibaseClient, MediaWiki-extensions-Scribunto. TASK DETAIL https://phabricator.wikimedia.org/T265562 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RolandUnger Cc: hoo, Lydia_Pintscher, RolandUnger,

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-15 Thread RolandUnger
RolandUnger added a comment. It seems that it is a sudden spike. The computing time only for `addStatementUsage` jumped from about 600 ms to 5000 ms (all Lua stuff from about 4.5 sec to about 9 sec). Within the last two weeks I added and optimized the analysis of opening hours to our vCard

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-15 Thread Lydia_Pintscher
Lydia_Pintscher edited projects, added Wikidata-Campsite; removed Wikidata-Campsite (Wikidata-Campsite-Iteration-∞). Lydia_Pintscher added a comment. Thank you, Roland. Some questions: - Was this a sudden spike or a slow increase? - When did you see the change? - Is this only

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-15 Thread RolandUnger
RolandUnger added a project: MediaWiki-Cache. TASK DETAIL https://phabricator.wikimedia.org/T265562 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RolandUnger Cc: hoo, Lydia_Pintscher, RolandUnger, Aklapper, Akuckartz, Iflorez, darthmon_wmde,

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-14 Thread RolandUnger
RolandUnger added a comment. Maybe it is the same like T236485 . TASK DETAIL https://phabricator.wikimedia.org/T265562 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RolandUnger Cc: Lydia_Pintscher,

[Wikidata-bugs] [Maniphest] T265562: Wikibase Lua: addStatementUsage seems unjustifiably expensive

2020-10-14 Thread RolandUnger
RolandUnger created this task. RolandUnger added projects: Wikidata, Wikibase-Lua, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞), Performance Issue. Restricted Application added a subscriber: Aklapper. TASK DESCRIPTION The computing times increased drastically by about 100 %, mainly