Jump to content

Archived

This topic is now archived and is closed to further replies.

dadamssg

when to delete old forum topics and their replies?

Recommended Posts

i've developed a forum and have a topics table and a responses table. I'm wondering how forums go about deleting the old topics and their responses? whats a good time length for the topic to be inactive before deleting?

Share this post


Link to post
Share on other sites

Forum software would generally leave this time for the user to set if at all. I know for a fact nothing gets purged around here.

Share this post


Link to post
Share on other sites

really? nothing gets purged? phpfreaks.com isn't worried about having a crap load of memory taken up? or am i giving the amount of data stored in these forums too much clout?

Share this post


Link to post
Share on other sites

I whould agree that data never gets removed since the old data is used for history queries. Data can be moved to other tables but not completely removed. Storage space is not expensive :)

Share this post


Link to post
Share on other sites

really? nothing gets purged? phpfreaks.com isn't worried about having a crap load of memory taken up? or am i giving the amount of data stored in these forums too much clout?

 

Yeah we don't delete any content. Logs and old sessions get cleaned out, but not posts. It's not really an issue. Our database is only about 1 GB, but MySQL doesn't load all content into memory, so that's not really an issue.

 

We are running a separate search daemon for the forums called Sphinx though.

Share this post


Link to post
Share on other sites

what do you mean MySQL doesn't load all content into memory? and what is Sphinx? i developed a simple forum with two tables, Topics and Responses. For the sake of discussion, if my forum EVER got to be as used as phpfreaks would i have to worry about having TOO much in my database?

Share this post


Link to post
Share on other sites

what do you mean MySQL doesn't load all content into memory?

 

I mean what I said. The database doesn't live in memory, but on the file system.

 

and what is Sphinx?

 

I already said what Sphinx is. It's a search daemon. Do a Google search if you want more information.

Share this post


Link to post
Share on other sites

what do you mean MySQL doesn't load all content into memory? and what is Sphinx? i developed a simple forum with two tables, Topics and Responses. For the sake of discussion, if my forum EVER got to be as used as phpfreaks would i have to worry about having TOO much in my database?

 

I think that with todays hardware, you will run out of bandwidth (e.g. many users) before running out of disk space, unless you do a TERRIBLE database design.

Share this post


Link to post
Share on other sites

MySQL is a sort of "on-demand" service that lives on a hard-drive. You do a SQL query on your database and MySQL only loads what it needs in to the memory, opens part of the file, extracts the information then closes the file and cleans up it's memory. That's why a MySQL (or indeed, almost any good SQL) server can have a billion records in it and still be as fast as lightning. Loading a billion records in to memory would kill your server really quickly ;)

 

Hope that makes some more sense? I've simplified the process greatly, but that's how it works in essence..

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.