dadamssg Posted August 8, 2009 Share Posted August 8, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/169315-when-to-delete-old-forum-topics-and-their-replies/ Share on other sites More sharing options...
trq Posted August 8, 2009 Share Posted August 8, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/169315-when-to-delete-old-forum-topics-and-their-replies/#findComment-893477 Share on other sites More sharing options...
dadamssg Posted August 9, 2009 Author Share Posted August 9, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/169315-when-to-delete-old-forum-topics-and-their-replies/#findComment-893913 Share on other sites More sharing options...
Highlander Posted August 9, 2009 Share Posted August 9, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/169315-when-to-delete-old-forum-topics-and-their-replies/#findComment-893942 Share on other sites More sharing options...
Daniel0 Posted August 9, 2009 Share Posted August 9, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/169315-when-to-delete-old-forum-topics-and-their-replies/#findComment-893991 Share on other sites More sharing options...
dadamssg Posted August 9, 2009 Author Share Posted August 9, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/169315-when-to-delete-old-forum-topics-and-their-replies/#findComment-894096 Share on other sites More sharing options...
Daniel0 Posted August 9, 2009 Share Posted August 9, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/169315-when-to-delete-old-forum-topics-and-their-replies/#findComment-894099 Share on other sites More sharing options...
Highlander Posted August 9, 2009 Share Posted August 9, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/169315-when-to-delete-old-forum-topics-and-their-replies/#findComment-894240 Share on other sites More sharing options...
Grayda Posted August 10, 2009 Share Posted August 10, 2009 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.. Quote Link to comment https://forums.phpfreaks.com/topic/169315-when-to-delete-old-forum-topics-and-their-replies/#findComment-894454 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.