Active
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Entity tokens
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2011 at 22:43 UTC
Updated:
1 Oct 2011 at 22:44 UTC
Hi ,
I use custom function to check node(title) there or not , it is ok but now i have more than 10K nodes that must searched ,
It give memory limit error to me ,
how can i fix this code ?
$query = new EntityFieldQuery;
$result = $query
->entityCondition('entity_type', 'node')
->propertyCondition('type', 'site')
->propertyCondition('title', $title)
->execute();
if (!empty($result['node'])) {
.....
} else { .... }