Lucas_Werkmeister_WMDE added a comment.

  Arthur and I looked at some of the occurrences in Logstash, and two affected 
pages on itwiki are Ungheria 
<https://it.wikipedia.org/w/index.php?curid=1604654> and Ridley Scott 
<https://it.wikipedia.org/w/index.php?curid=3787>; in both we see the same 
pattern that Parsoid parses yield much less entity usage than legacy Parser 
parses:
  
    function debugT255706( $pageId ) { 
    $services = mws();
    $pc = $services->getParserCache();
    $wpf = $services->getWikiPageFactory();
    $wp = $wpf->newFromID( $pageId );
    $parserOutputParser = $pc->get( $wp, ParserOptions::newFromAnon() );
    $parsoidAccess = $services->getParsoidOutputAccess();
    $parserOutputParsoid = $parsoidAccess->getCachedParserOutput($wp, 
ParserOptions::newFromAnon());
    $usagesParser = $parserOutputParser->getExtensionData( 
'wikibase-entity-usage' );
    $usagesParsoid = $parserOutputParsoid->getExtensionData( 
'wikibase-entity-usage' );
    return [ count( $usagesParser ), count( $usagesParsoid ) ];
    }
  
  
  
    > debugT255706(1604654)
    = [
        641,
        28,
      ]
    
    > debugT255706(3787)
    = [
        661,
        21,
      ]
  
  We also saw that Modulo:Wikidata 
<https://it.wikipedia.org/wiki/Modulo:Wikidata> intentionally avoids 
`mw.wikibase.getEntity()` for performance reasons, so it would not have 
benefited from the previous fix in Scribunto_LuaWikibaseEntityLibrary 
<https://gerrit.wikimedia.org/r/992135>; we suspect that some fixes in T355877 
<https://phabricator.wikimedia.org/T355877> would help there.

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

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

To: Lucas_Werkmeister_WMDE
Cc: ArthurTaylor, hoo, Lucas_Werkmeister_WMDE, ItamarWMDE, Ladsgroup, Krinkle, 
eprodromou, aaron, Michael, Aklapper, thcipriani, Danny_Benjafield_WMDE, 
Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 
Astuthiodit_1, 786, Biggs657, karapayneWMDE, Invadibot, maantietaja, Juan90264, 
Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, darthmon_wmde, Rosalie_WMDE, 
Kent7301, joker88john, CucyNoiD, Nandana, Gaboe420, Giuliamocci, Cpaulf30, 
Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, QZanden, KimKelting, 
LawExplorer, Lewizho99, Maathavan, _jensen, rosalieper, Neuronton, Scott_WUaS, 
Verdy_p, Wikidata-bugs, aude, Jdforrester-WMF, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to