6
zyspec:
Thank you for your help.
Firstly i should explain more about my specific issue.
1- i am sure that it is because the memory limit because i found this error in error_log file.
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 11245945 bytes) in /home/***USER***/public_html/modules/easiestml/easiestml.php on line 171
but by disabling the easiestml and remove the whole module in ftp i still have 500 errors. so it is not related to easiestml.
2- the memory_limit is 128M and i am in a shared host and it is the maximum allowed memroy. xoops.org have a dedicate so have not any issue.
3- i repaired the tables before but that not solved the issue. i repaired it today too.
4- newbb module use getCount($criteria) XOOPS CORE function for count. ( located in XOOPS/class/model/stats.php)
but i change the COUNT(*) and follow your advise and use `post_id` but still i have the same error. i have the same error with `pid`.
5- here is the mysql explain on _bb_posts table.
Field Type Null Key Default Extra
post_id int(10) unsigned NO PRI NULL auto_increment
pid int(10) unsigned NO MUL 0
topic_id int(8) unsigned NO MUL 0
forum_id smallint(4) unsigned NO MUL 0
post_time int(10) unsigned NO MUL 0
uid int(5) unsigned NO MUL 0
poster_name varchar(255) YES NULL
poster_ip varchar(15) NO 0.0.0.0
subject varchar(255) NO MUL
icon varchar(25) NO
attachsig tinyint(1) unsigned NO 0
approved smallint(2) NO MUL 1
post_karma int(10) unsigned NO 0
attachment text YES NULL
require_reply tinyint(1) unsigned NO 0
As i said above i have the same error with `pid`
6- i dont have 500 error when the count is below 50,000 maybe even i dont have error when it is 100,000 ( i should test but it is hard)
kerkyra:
thank you for your post but as you know we should get the count from mysql to have the number of total indexes.