I've added a remote_entity_load_multiple() to the resource class (and also the connection module that I use).
The next step is to change the entity controller's load() to use this. Currently, it examines each entity in turn and loads it from remote if it's stale. Instead, we should examine each entity, build an array of stale entities, then load those in bulk -- and let the resource class take care of determining whether the connection supports a bulk load.
(I'd have done this as part of what I've done so far, but I'm rushing for a deadline...)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2321845.remote_entity.remote-load-expired-in-bulk.patch | 4.62 KB | joachim |
Comments
Comment #1
joachim commentedWe'll need some kind of setting, either on the connection or the entity, to say how many remote entities should be loaded in one lot.
Comment #2
joachim commentedComment #3
joachim commentedFixed.
Commit aa356e88e86d52c0292d6deb3b91aec75a40c52d