Latest search engine results plugin update

Found a bug? Tell us!!
Post Reply
justgetthere
Regular
Posts: 20
Joined: Tue May 19, 2009 3:21 pm

Latest search engine results plugin update

Post by justgetthere »

:evil: My host provider, GoDaddy, shutdown my shared unlimited hosting account due to the latest update to the search engine visitor tracking plugin. I just deleted it and I'm waiting for them to restore my account, this is what they sent me.

We have disabled your database to return the server to normal usage. To re-enable your database, you will need to correct the following query:

select day,time,ref from serendipity_visitors where ((ref like
'http://www.google.%' and ref like '%search?%') OR (ref like
'%.search.yahoo.com/search%') OR (ref like
'http://www.bing.com/search%') OR (ref like
'%scroogle.org/cgi-bin/nbbw.cgi%') OR (ref like
'%ixquick.com/do/metasearch.pl%') OR (ref like
'http://searchservice.myspace.com%' and ref like '%qry=%'))order by day
desc,time desc limit 10

The query examine 1,532,998 rows which is not allowed on Shared Hosting Accounts.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Latest search engine results plugin update

Post by garvinhicking »

Hi!

Yes, from time to time you should clear up the serendipity_visitors database table. If that is not an option, you might want to upgrade the statistics plugin to a new version which should add some new indexes to make the query perform better.

Best 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/
justgetthere
Regular
Posts: 20
Joined: Tue May 19, 2009 3:21 pm

Re: Latest search engine results plugin update

Post by justgetthere »

All the plugins I use are regularly updated. The statistics plugin is updated. I updated the Google search results plugin and 2 days later Godaddy sent me the email and shutdown my hosting. What is different between the plugin use on my site versus others. I don't customize any code or anything so I don't understand what is happening and the query problem they are talking about.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Latest search engine results plugin update

Post by garvinhicking »

Hi!

The statistics plugin is a plugin that ships with serendipity core itself; which serendipity version are you using? I believe the update for the keys happened in 1.4.1 or 1.5 (beta).

The SQL that you could execute on your databas eto add those indixes manually (like through phpMyAdmin):

Code: Select all

CREATE INDEX visitorses ON serendipity_visitors (sessID);
CREATE INDEX visitorday ON serendipity_visitors (day);
CREATE INDEX visitortime ON serendipity_visitors (time);
CREATE INDEX visitortimeb ON serendipity_visitors_count (year, month, day);
CREATE INDEX refsrefs ON serendipity_refs (refs);
CREATE INDEX refscount ON serendipity_refs (count);
HTH,
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/
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Latest search engine results plugin update

Post by blog.brockha.us »

justgetthere wrote: desc,time desc limit 10

The query examine 1,532,998 rows which is not allowed on Shared Hosting Accounts.
The sql query limits to 10 rows (internally examining more, of course). If the indexes are created, garvin gave to you, this should be very fast and not a real problem for the MySQL database..
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
Post Reply