I've insert about 50000 lines into my s9y,then the front page cann't load,display the error:Fatal error: Maximum execution time of 30 seconds exceeded in...
Wow. 1.5GB data in your table, that sure chokes your MySQL. If you want to make that data workable, you need to do some serous MySQL optimizing and have a Server with enough cache/RAM.
You might want to run those optimizations for your SQL tables; replace {PREFIX} with your dbPrefix (like "serendipity_"):
CREATE INDEX commentry_idx ON {PREFIX}comments (entry_id);
CREATE INDEX commpentry_idx ON {PREFIX}comments (parent_id);
CREATE INDEX commtype_idx ON {PREFIX}comments (type);
CREATE INDEX commstat_idx ON {PREFIX}comments (status);
CREATE INDEX edraft_idx ON {PREFIX}entries (isdraft);
CREATE INDEX eauthor_idx ON {PREFIX}entries (authorid);
CREATE INDEX refentry_idx ON {PREFIX}references (entry_id);
CREATE INDEX exits_idx ON {PREFIX}exits (entry_id,day);
CREATE INDEX referrers_idx ON {PREFIX}referrers (entry_id,day);
CREATE INDEX urllast_idx on {PREFIX}suppress (last);
CREATE INDEX pluginplace_idx ON {PREFIX}plugins (placement);
CREATE INDEX categorya_idx ON {PREFIX}category (authorid);
CREATE INDEX categoryp_idx ON {PREFIX}category (parentid);
CREATE INDEX categorylr_idx ON {PREFIX}category (category_left, category_right);
After that you might want to execut OPTIMIZE TABLE queries on each of the serendipity tables.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking wrote:Wow. 1.5GB data in your table, that sure chokes your MySQL. If you want to make that data workable, you need to do some serous MySQL optimizing and have a Server with enough cache/RAM.
You might want to run those optimizations for your SQL tables; replace {PREFIX} with your dbPrefix (like "serendipity_"):
CREATE INDEX commentry_idx ON {PREFIX}comments (entry_id);
CREATE INDEX commpentry_idx ON {PREFIX}comments (parent_id);
CREATE INDEX commtype_idx ON {PREFIX}comments (type);
CREATE INDEX commstat_idx ON {PREFIX}comments (status);
CREATE INDEX edraft_idx ON {PREFIX}entries (isdraft);
CREATE INDEX eauthor_idx ON {PREFIX}entries (authorid);
CREATE INDEX refentry_idx ON {PREFIX}references (entry_id);
CREATE INDEX exits_idx ON {PREFIX}exits (entry_id,day);
CREATE INDEX referrers_idx ON {PREFIX}referrers (entry_id,day);
CREATE INDEX urllast_idx on {PREFIX}suppress (last);
CREATE INDEX pluginplace_idx ON {PREFIX}plugins (placement);
CREATE INDEX categorya_idx ON {PREFIX}category (authorid);
CREATE INDEX categoryp_idx ON {PREFIX}category (parentid);
CREATE INDEX categorylr_idx ON {PREFIX}category (category_left, category_right);
After that you might want to execut OPTIMIZE TABLE queries on each of the serendipity tables.
What kind of CPU and RAM do you have? Which MySQL version are you running?
Such a large site like yours certianly requires some special server setup.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
You should try do some MySQL tuning, mostly enabling the query cache and assigning as much as possible RAM to MySQL. Also make sure your server is not running any other high-load/traffic applications on the same time?
This is mostly a MySQL issue, other systems with 1.5GB of data will also not perform because MySQL does not deliver the data...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
I am sorry, this seems to lead a bit too far, as you seem to be running a commercial site, right? I can offer you commercial support then, or if you are running a non-commercial site I can look at your phpMyAdmin install and see what your MySQL options are...?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking wrote:I am sorry, this seems to lead a bit too far, as you seem to be running a commercial site, right? I can offer you commercial support then, or if you are running a non-commercial site I can look at your phpMyAdmin install and see what your MySQL options are...?