Jump to content
thirty bees forum

corrupt db table ps_guest


Havouza

Recommended Posts

It is used not only for statistics, but as a peristent identifier of your annonymous visitors.

Every time your visitors acces your site (with the same cookie), the session will be assigned with the same Guest record.

This can be used for various pusposes. For example, my revws module uses this functionality to allow annonymous visitors to edit their own reviews.

If you truncate this table, your visitors will receive brand new Guest record on the next visit, and the (persistent) identity is lost. 

Link to comment
Share on other sites

Hi @Mediacom87

I will ask the owner. But unfotunately I think the problem is bigger. He has 2 shops, mostly identical. Same version, same number of products, about 1500 in each, same modules etc. They both resides on the same vps. Jv74.se is horribly slow, jv80.se is much better even if not perfect. I have run out of ideas about what can be wrong. The biggest delay is to load the frontpage. Both shops has memcached installed can you give a hint where to look

Link to comment
Share on other sites

This data, as previously explained, is generated with each new visit to your site by an Internet user, so it is that you have more visits on a store compared to the other store.

1 hour ago, datakick said:

Every time your visitors acces your site (with the same cookie), the session will be assigned with the same Guest record.

 

  • Like 1
Link to comment
Share on other sites

If this table had 2.5 million records quite likely some other statistics tables were too big too. Look at ps_connections, ps_connections_source and ps_pagenotfound. 

Prestools has a cleanup page with the most common operations. 

With tables this big you might also consider truncating them when they aren't used. It will be much quicker.

As Datakick mentioned these are statistics. But not everyone uses statistics or they use Google's tracking instead. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...