Last modified: 2014-09-05 15:26:48 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
Done: AbstractQuery::loadMetadataBatch takes care of this (although I'm not particularly psyched by how it works :p)