FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Why store messages in text files?
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Why store messages in text files? [message #168382] Wed, 24 April 2013 21:15 Go to next message
cpreston is currently offline  cpreston   United States
Messages: 160
Registered: June 2012
Location: Oceanside
Karma: 6
Senior Member
add to buddy list
ignore all messages by this user
The FAQ says that this is for performance, but I really don't understand how storing files in the filesystem could result in quicker performance than storing those same messages in the database -- especially if that database can fit in RAM.

This is the first situation where the way FUDforum does something (or at least the default way it does it) seems wrong to me.

I keep seeing this banner ad for web performance load testing. I wonder if they could test it for me and tell me which way is faster.

Now let me go back on what I said. As I recall, phpBB2 had a cache and would store that in a filesystem... Hmmm...
Re: Why store messages in text files? [message #168386 is a reply to message #168382] Thu, 25 April 2013 01:59 Go to previous message
naudefj is currently offline  naudefj   
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Test both and decide what works best for you. FUDforum will support it either way. It can even move messages between database and file system storage and vice versa (see Compact Messages).

File system storage works reasonably well for most forums. Think of file system storage as operating the forum from cache. If you plan on running your forum across multiple sites with database replication, then it would probably be better to put the messages in the DB and enable a caching plugin.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Individual Forum Analytics
Next Topic: PATH_INFO style URLs?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 14 10:21:01 EST 2017

Total time taken to generate the page: 0.00647 seconds