Page MenuHomePhabricator

Flow: Easier batch-loading
Closed, ResolvedPublic

Description

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


Version: unspecified
Severity: normal

Details

Reference
bz61845

Event Timeline

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

Done: AbstractQuery::loadMetadataBatch takes care of this (although I'm not particularly psyched by how it works :p)