Reply
what kind of settings storage is better?
Old 03-15-2007, 02:14 AM what kind of settings storage is better?
silverspike's Avatar
GoZenn, LLC

Posts: 62
Ok, sometimes i store settings via a database, and sometimes i use flatfiles.

i think that storing them in a database is better, mainly because i think databases are better for that type of storage. they also cut down in files on your sever, and bandwith to load the settings file.

so when you code custom apps, how do u store ur settings?
__________________
GoZenn, LLC Owner
FreeTopix.com | ImgBug.com| GoZenn SMS Coming Soon
silverspike is offline
Reply With Quote
View Public Profile Visit silverspike's homepage!
 
When You Register, These Ads Go Away!
Old 03-15-2007, 11:33 AM
Junior Talker

Posts: 45
flat files are faster than a database. If by settings you mean a configuration file for your application/website, then I use flat files.
__________________
Search The Tube
imported_cyrus is offline
Reply With Quote
View Public Profile
 
Old 03-21-2007, 01:40 AM
Junior Talker

Posts: 20
I recommend flat filing also.
dashed is offline
Reply With Quote
View Public Profile
 
Old 03-21-2007, 02:38 AM
$1,000 - $4,999 Monthly

Posts: 63
I'm a pretty big MySQL database kinda person when it comes to programming in PHP and MySQL. I used to use flat-files, however I find that databases are much easier to implement (for me anyway) and are a lot easier to call up on the fly.
3Motions is offline
Reply With Quote
View Public Profile Visit 3Motions's homepage!
 
Old 03-21-2007, 01:51 PM
$100 - $999 Monthly

Posts: 64
It depends....

If there is relational data that is being stored (multiple tables/files that relate to other tables/files) then database.

If it's just a simple list of settings (something=something) then a flat file.

Each has it's place and it all depends what you want to do. It even depends on the technology as well. An embedded SQL database may take the place of a flat file and might be a better solution because it can be cached and all run from memory which eliminates expensive disk access. If you're a good enough programmer then a flat file system can be cached to memory as well and kept there for an entire session (security may be an issue). Again, it all depends.
imported_chopper is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to what kind of settings storage is better?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13067 seconds with 12 queries