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...)

Comments

joachim’s picture

We'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.

joachim’s picture

Status: Active » Needs work
StatusFileSize
new4.62 KB
joachim’s picture

Status: Needs work » Fixed

Fixed.

Commit aa356e88e86d52c0292d6deb3b91aec75a40c52d

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.