Which db-tables can I empty before migration?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
ju
Regular
Posts: 50
Joined: Wed Oct 01, 2008 4:27 pm

Which db-tables can I empty before migration?

Post by ju »

As mentioned in another request http://board.s9y.org/viewtopic.php?f=4&t=19004 I'm preparing for moving my s9y installation to another server. During 4 years the database has grown quite a bit. I don't have the original size any more but in 2009 the db-dump was some 800 KB and now it is 272 MB.

I wonder if I can "downsize" it a little bit before migrating. For instance there are over 1 million datasets in the spamblock bayes, of which I could certainly delete some. I also noticed that every single visit from years ago can still be found in the database.

Where else could I look for tables that have grown too large and be either emptied altogether or where I can delete at least the oldest datasets without losing important information and withou destroying something that is essential for s9y to funktion?
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: Which db-tables can I empty before migration?

Post by bernd_d »

You could use serendipity_event_dbclean to check, if there are some unnecessary entries in tables spamblocklog, spamblock_htaccess, visitors, referrers and exits, before you export database.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Which db-tables can I empty before migration?

Post by Timbalu »

Please read
http://board.s9y.org/viewtopic.php?f=2&t=9107
Its only for statistic use, so truncating or empty the table won't harm Serendipity to work.
Same for visitor table.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
ju
Regular
Posts: 50
Joined: Wed Oct 01, 2008 4:27 pm

Re: Which db-tables can I empty before migration?

Post by ju »

Thank you! This was the explanation I was looking for (but with the wrong catch-words).
Post Reply