Jump to content

Recommended Posts

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.

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?

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.

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.

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..

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.