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

       Web browser: ---
            Bug ID: 45234
           Summary: Fix rebuildTermSearchKey script.
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

The rebuildTermSearchKey script needs fixes for several issues. Not that the
core of the functionality is implemented in TermSqlCache::rebuildSearchKey(). 

The most important issues are:

* The batch size is hardcoded to 10. It should be configurable (ideally, using
a command line option, passed as a parameter to rebuildSearchKey). The default
should be at least 100, maybe 1000 (ask Asher?).

* The continuation between batches is ambiguous. We have term_row_id now, use
that instead of trying to sort and select by *all* fields.

* Use a logging callback to report progress (e.g. a dot per batch, or some
such).

* To allow for nicer handling of options, logging, etc, rebuildSearchKey()
could be factored out into a separate class, so these things could be injected
via the constructor instead of being function arguments.

There also seems to be a fatal error related to the issue addressed in
Idbf67b96, but I'm not sure how that is related.

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

Reply via email to