tags:

views:

161

answers:

2

hi i was trying to do a query in drupal which selects every row in table, i was having an issue with the no of rows i was able to query for the query is working for 300row limit but if i increase it 400 it is going blank page.

$total_terms = 300;
$query = "SELECT N.nid ,N.tid FROM term_node N  ";
$query_result = db_query_range($query, $vid, 0, $total_terms);
+3  A: 

You are probably timing out, or exceeding your memory limit. Check the Apache and PHP logs.

Byron Whitlock
i have increased the memory to 96mb but still same problem.
pmarreddy
how long before it goes blank? if it is about 30 seconds it is most likely the time limit.
Byron Whitlock
Did you check the logs?
Henrik Opel
i am getting child pid 2652 exit signal Segmentation fault (11)in apache log
pmarreddy
the query is working fine in phpmyadmin
pmarreddy
A: 

You might want to try the Batch API

It might be helpful to use the drupal_tweaks module; it allows you to set php execution time limit, as well as mysql default_wait limit.

threecheeseopera