There can be a lot of parents. When calculating parents, this can mean a damn lot of entity_loads. Let's reduce that if possible, as only thing we actually need to look up is a single field value.
This does mean extra queries if parent had already been loaded, as entity_load is cached, but they're rather quick queries as far as I can tell.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2438445-og_subgroups-no-entity-load-2.patch | 7.07 KB | hefox |
| #1 | 2438445-og_subgroups-no-entity-load-1.patch | 4.09 KB | hefox |
Comments
Comment #1
hefox commentedComment #2
hefox commentedMore removal of entity load
mm wish i could get rid of entity load in check member access that is used purely to get bundle, but don't know of any other generic way to get the bundle without entity load/extract ids...
Comment #3
mpotter commentedBeen using this for a while in Open Atrium so marking it RTBC. Will commit it soon unless there are objections.
Comment #5
mpotter commentedCommitted to 3aa2dc9.