Only need to know if at least one result, so might as well limit the query as getReferencableEntities does have a $limit param.

CommentFileSizeAuthor
#1 2011220-og_entity_reference_single-1.patch567 byteshefox

Comments

hefox’s picture

StatusFileSize
new567 bytes

This will add a limit 1 to the query that fetches if any referencable options for the og field in og_node_access, should have no functionality impact (only performance).. assuming there's no storage backend that is slower fetching 1 than fetching all >.O

hefox’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2011220-og_entity_reference_single-1.patch, failed testing.

hefox’s picture

Status: Needs work » Needs review
amitaibu’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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