entity_load or EntityFieldQuery to pull entity ids in Drupal -


should using entity_load or entityfieldquery entity ids custom entity?

i going use entity_load pull of entities in question of particular type, , grab relevant information (but seems inefficient).

entityfieldquery return array of entity ids. if need entityfieldquery faster.

if need field values should entity_load. slow drupal way.

if large number of nodes may have timeout issues. overcome use drupals batch api or can use database api write custom query pull in exact data need in 1 query. technically faster requires more code , can break compatibility.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -