https://bugzilla.wikimedia.org/show_bug.cgi?id=53945

       Web browser: ---
            Bug ID: 53945
           Summary: A cheap way to get information from page_props table
                    for all links on page (similar to LinkCache?) needed
           Product: MediaWiki
           Version: 1.22-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Database
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected]
            Blocks: 8339, 17212
    Classification: Unclassified
   Mobile Platform: ---

A cheap way to get information from page_props table for all links on page is
needed. Two use cases are related to the DISPLAYTITLE: magic word (bug 17212)
and to marking disambigs using the Disambiguator extension (bug 8339).

At a glance it seems like it would be possible to reuse LinkCache + LinkBatch
for both purposes, adding one indexed query per batch per prop, which sounds
fast enough to me. (We'd also need a hook in both to allow extensions to do
this.)

The results could be stored in mGoodLinkFields in LinkCache, with names
prefixed with "prop_" or something to distinguish them from the information
from the page table that's in there right now. (This might require more hooks
or not, depending on how we do them and how powerful we make them - if the hook
for LinkCache allowed any queries, we'd need a separate one; if it just allowed
stating prop names, it'd do here as well.)

This really seems implementable and sort of easy. Thoughts?

(CC-ing people involved in current patches to those two bugs and resident
performance magicians.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to