sessions don't get deleted from sys_sessions

Sessions are not deleted from sys_sessions and by now I have over 1500 records in that table. Small detail is that this is not a live site and currently I am the only one using it, for testing.

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 30 May 2010

Am I the only one with this issue?

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 31 May 2010

Hi and I have this issue.  I have over 316,992 records in sys_sessions table and it is 61.7 MB. Is it possible to truncate it manually?

Quote · 16 Jul 2010

Lack of database pruning is a known issue, I already made a ticket a while ago.

 

To delete unwanted records, you can run such SQL request:

DELETE FROM `sys_sessions` WHERE `sys_sessions`.`date` < xxxxxxxxxx;

(replace xxxxxxxxxx with the first record's date you want to keep)

 

Maybe have a look at your tables bx_spy_data and bx_spy_friends_data too ;-)

DELETE FROM `bx_spy_data` WHERE `bx_spy_data`.`id` < xxxxxx;
DELETE FROM `bx_spy_friends_data` WHERE `bx_spy_friends_data`.`id` < xxxxxx;

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 16 Jul 2010

yes it's a BIG trouble

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 16 Jul 2010

Ticket was created - http://www.boonex.com/trac/dolphin/ticket/2095

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 2 Aug 2010

 

Lack of database pruning is a known issue, I already made a ticket a while ago.

 

To delete unwanted records, you can run such SQL request:

DELETE FROM `sys_sessions` WHERE `sys_sessions`.`date` < xxxxxxxxxx;

(replace xxxxxxxxxx with the first record's date you want to keep)

 

Maybe have a look at your tables bx_spy_data and bx_spy_friends_data too ;-)

DELETE FROM `bx_spy_data` WHERE `bx_spy_data`.`id` < xxxxxx;
DELETE FROM `bx_spy_friends_data` WHERE `bx_spy_friends_data`.`id` < xxxxxx;

Thanks MichelSwiss!

This made my database go from over 10MB to just 2MB.

What difference in size - yeesh!

I hope this gets fixed soon.

Quote · 2 Aug 2010

I should have read this thread sooner.  I just deleted over 25,000 records from this table.  I believe my pages are loading faster now.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 14 Aug 2010

2 years later and this has STILL not been fixed in Dolphin, what's up with that?

Quote · 8 Sep 2012

 

2 years later and this has STILL not been fixed in Dolphin, what's up with that?

 

Is your cron job working? My sessions are deleted every night at midnight when the cron job runs.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 8 Sep 2012

yeah, I guess it is working, but there's a TON of other stuff that should be deleted from the database included in the cron. I just deleted probably close to 5 million useless entries, tons of crap from deleted members, etc...

Quote · 8 Sep 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.