Page MenuHomePhabricator

Re-use the same instance of SiteSQLStore everywhere.
Closed, ResolvedPublic

Description

Currently, SiteSQLStore::newInstance() is used in a lot of places that need to look up Sites. This means we have to fetch the site list (~800 entries that need to be uncompressed and deserialized) from memcached (via TCP) over and over.

We should inject the SiteStore where possible, and rely on a application scope singleton in WikibaseRepo resp WikibaseClient in static entry points.


Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=0

Details

Reference
bz64743

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:25 AM
bzimport set Reference to bz64743.
bzimport added a subscriber: Unknown Object (MLST).

marius, can you look into this?

Change 133179 had a related patch set uploaded by Hoo man:
Avoid SiteSQLStore::newInstance and the deprecated Sites class

https://gerrit.wikimedia.org/r/133179

Change 133179 merged by jenkins-bot:
Avoid SiteSQLStore::newInstance and the deprecated Sites class

https://gerrit.wikimedia.org/r/133179