Last modified: 2014-09-05 15:26:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63845, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61845 - Flow: Easier batch-loading
Flow: Easier batch-loading
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-24 08:01 UTC by Matthias Mullie
Modified: 2014-09-05 15:26 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthias Mullie 2014-02-24 08:01:23 UTC
We have lots of mechanism in place to cache stuff we've fetched from network resources in memory.

The cool think about this is that we can batch-load a lot of workflows/posts/... at once, and then just query from them again individually wherever we need them (e.g. let Collection query for them - if data is in local cache already, it won't cause additional network roundtrips)

I think we should build some "batchloader" class to make batchloading easier. We already have lots of batchloading code spread throughout (e.g. the AFAIK unused AbstractFormatter::loadRevisions * ::loadWorkflows) - I'd love to consolidate this in one place where all code can call it from
Comment 1 Matthias Mullie 2014-09-05 15:26:48 UTC
Done: AbstractQuery::loadMetadataBatch takes care of this (although I'm not particularly psyched by how it works :p)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links