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

       Web browser: ---
             Bug #: 41250
           Summary: cleanupUploadStash.php is slow
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: File management
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


It takes ages to run.

Also, the code does quite a large select. It should be doing batch reads

        $cutoff = time() - $wgUploadStashMaxAge;
...
        $res = $dbr->select(
            'uploadstash',
            'us_key',
            'us_timestamp < ' . $dbr->addQuotes( $dbr->timestamp( $cutoff ) ),
            __METHOD__
        );

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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