Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently atoms are being fetched one by one. There is a scald_atom_load_multiple function but it just iterates over the array of sid's and calls scald_fetch for each one. There is also an @todo tag in the function to improve it, so here is my proposal.
I added a scald_fetch_multiple, which does pretty much the same as scald_fetch, except using entity_load to load all atoms at once.
Comment | File | Size | Author |
---|---|---|---|
scald-multiple_load.patch | 5.42 KB | Volx | |
Comments
Comment #1
DeFr CreditAttribution: DeFr commentedThanks, pushed as e8575c. I've also pushed a followup commit to clean up this code, 652deb.
Comment #2
DeFr CreditAttribution: DeFr commented