简体   繁体   English

php和mysql的查询限制问题(drupal 6)

[英]query limit issue with php and mysql (drupal 6)

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. 您好,我试图在drupal中进行查询,选择表中的每一行,但我遇到了行数问题,我可以查询该查询的行数限制为300行,但是如果我将其增加到400行,则行为空白页。

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

You are probably timing out , or exceeding your memory limit . 您可能超时或超出了内存限制 Check the Apache and PHP logs. 检查Apache和PHP日志。

You might want to try the Batch API 您可能想尝试Batch API

It might be helpful to use the drupal_tweaks module; 使用drupal_tweaks模块可能会有所帮助; it allows you to set php execution time limit, as well as mysql default_wait limit. 它允许您设置php执行时间限制,以及mysql default_wait限制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM