Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

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
Trades: 0
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?
__________________

Please login or register to view this content. Registration is FREE
Owner

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
| GoZenn SMS Coming Soon
silverspike is offline
Reply With Quote
View Public Profile Visit silverspike's homepage!
 
 
Register now for full access!
Old 03-15-2007, 11:33 AM
Junior Talker

Posts: 45
Trades: 0
flat files are faster than a database. If by settings you mean a configuration file for your application/website, then I use flat files.
__________________

Please login or register to view this content. Registration is FREE
imported_cyrus is offline
Reply With Quote
View Public Profile
 
Old 03-21-2007, 01:40 AM
Junior Talker

Posts: 20
Trades: 0
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
Trades: 0
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
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
imported_chopper is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to what kind of settings storage is better?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





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



Page generated in 0.14488 seconds with 12 queries