IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic

Flat Files! Good Or Bad? Whats Your Opinion!


Flat files!
You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Total Votes: 15
Guests cannot vote 
mbafactory
no avatar
Advanced Member
*******
Group: Members
Posts: 131
Joined: 1-December 08
Member No.: 74,016
myCENT:49.30



Post #11 post Jan 5 2009, 10:51 AM
Flat files are useful to the extent you want to save the disk space to store them. But when it comes to the applications and abstracting out the useful information from the pile of lot of data it becomes too primitive and cumbersome. So for modern applications where disk space is not a problem flat files become not so useful. Besides these can not be used for purposes on which most of information storage is done. So if you are a beginner it is ok, but for advanced usage you need to rely on the systematic storage of the data.
Go to the top of the page
+Quote Post
rpgsearcherz
no avatar
Trap Grand Marshal Member
***********
Group: [HOSTED]
Posts: 1,403
Joined: 18-December 07
Member No.: 54,935
Spam Patrol
myCENT:80.10



Post #12 post Jan 5 2009, 06:40 PM
Well I was going to take the flat file route but after all of the thought I finally decided to fully dwelve into the CMS field.

Now my view on flat files...I love them when it comes to un-changing information. For example a website about your hobby or something that you really won't change.

But if you have a site that will be changing, having information added, etc. I would suggest steering clear and just going with a CMS.
Go to the top of the page
+Quote Post
cyber_electrons
no avatar
Premium Member
********
Group: Members
Posts: 190
Joined: 3-March 09
Member No.: 77,909
myCENT:83.09



Post #13 post Mar 7 2009, 11:52 AM
They are compact, if only for records, then there isn't need for fancy stuff.

But they may not be good for other purposes.
Go to the top of the page
+Quote Post
zakaluka
no avatar
Advanced Member
*******
Group: Members
Posts: 129
Joined: 9-April 09
Member No.: 79,837
myCENT:6.75



Post #14 post Apr 10 2009, 07:23 AM
Flat files are great for certain kinds of data. For example, I have some large XML (gzipped) files that my web application uses to get tagged, meaningful data from. However, the site also uses a database to store user information and other data. Since the XML files only change about once a year (if that), there is no real problem keeping them like that.

However, with too many files, it is possible with a large site to hit the inode limit, disallowing you from making more files on the system. Also, databases do have a lot of useful features that can't be had from flat files (exploiting relationships between data for selection, for example).

So, each have their own uses, but, overall, I'd have to go with a database over flat files.

Regards,

z.
Go to the top of the page
+Quote Post
webishqiptar
no avatar
Super Member
*********
Group: Members
Posts: 303
Joined: 30-April 09
From: shkoder
Member No.: 81,111
myCENT:16.44



Post #15 post May 5 2009, 12:10 AM
I think that flat file cms are not famous and well known. So if few users contribute on flat file based cms no user improvements will occur over time. I always liked databases and prefer Mysql. I am quite used to mysql queries. But maybe flat file cms take little size and bandwidth.
Go to the top of the page
+Quote Post
webishqiptar
no avatar
Super Member
*********
Group: Members
Posts: 303
Joined: 30-April 09
From: shkoder
Member No.: 81,111
myCENT:16.44



Post #16 post May 31 2009, 02:12 PM
I am not sure, but databases are good because you can export them to different cpanels. Then flat files are not so popular, and so you have to invent by yourself lots of things, You need to be a good coder.
Go to the top of the page
+Quote Post
k_nitin_r
no avatar
Super Member
*********
Group: Members
Posts: 430
Joined: 5-May 09
Member No.: 81,376
myCENT:31.71



Post #17 post Jun 3 2009, 05:27 PM
Hi!

My concern with flat files is write-concurrency. They offer good performance while reading though and if your file is your actual end markup, the web server can serve the file without any processing! WP-SuperCache does something similar for WordPress blogs.

Regards,
Nitin Reddy

"Flat flies good. Flat files bad." (kidding!)

This post has been edited by k_nitin_r: Jun 6 2009, 07:37 AM
Go to the top of the page
+Quote Post
Dave Morton
no avatar
Newbie
*
Group: Members
Posts: 6
Joined: 1-June 09
Member No.: 82,718



Post #18 post Jun 9 2009, 02:30 AM
I use a mixture of both flat files (in the form of static includes, for page formatting) and database (for, of all things, my error page, which uses detailed database info for reporting specifically on every error), depending on the criteria required. In my opinion, it's like comparing a pair of pliers to a wrench. You can use pliers (flat files) as a wrench (database), but it's clunky, and not the best tool for the job, most times. conversely, you can also use a wrench to do the same job that pliers do, at times, but it can be unwieldy to do. My main criteria is how static the data is, and if it's page structure (presentation) or data of some sort (content). It also depends on how hard it would be to code which way, and how lazy I'm feeling at the time. biggrin.gif
Go to the top of the page
+Quote Post
Wang
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 14
Joined: 13-April 08
Member No.: 60,745
myCENT:5.13



Post #19 post Jun 14 2009, 10:55 AM
No, they are a bad idea!
Go to the top of the page
+Quote Post
k_nitin_r
no avatar
Super Member
*********
Group: Members
Posts: 430
Joined: 5-May 09
Member No.: 81,376
myCENT:31.71



Post #20 post Jun 14 2009, 05:27 PM
Hi!

I like the way Dave Morton puts it - you need to use what's best for the scenario at hand. If you've got heavy traffic on your website, using a database call several dozen times on a single page isn't really a good idea.

For data that rarely changes, if you can put together the data you need and write it to an HTML file on disk, you can use the static HTMLpages for the header and footer (with frames) - that would save you quite a bit of processing. Or you could just call a PHP script via AJAX on a static HTML page for the dynamic content while the less-frequently changing content is already written to the page.

For images, instead of storing the actual binary data in the database, you can store the file on disk and keep just the file name in the database. It saves you a lot of processing too.

Regards,
Nitin Reddy
Go to the top of the page
+Quote Post

3 Pages V  < 1 2 3 >
Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new 36 gamefreaksl 45,319 2nd November 2009 - 04:43 AM
Last post by: user681
No new   38 Roly 58,229 4th November 2009 - 03:03 PM
Last post by: TheDarkHacker
No new   17 takato2100 2,602 Yesterday, 02:25 PM
Last post by: mahesh2k
No New Posts 4 zip_mc 13,321 22nd September 2009 - 10:26 AM
Last post by: akira550
No New Posts   3 tomko 8,763 6th August 2004 - 11:55 AM
Last post by: triax
No new   56 LILJOHN 56,784 5th December 2008 - 04:51 PM
Last post by: buxgoddess
No New Posts   0 slacker 3,457 9th August 2004 - 05:53 AM
Last post by: slacker
No New Posts   4 LuciferStar 7,640 19th August 2004 - 01:39 AM
Last post by: LuciferStar
No new 19 odomike 16,961 11th December 2004 - 05:30 PM
Last post by: antitrust
No new   21 djleli 18,534 18th November 2009 - 12:21 PM
Last post by: legend112
No new   19 Raptrex 13,689 3rd September 2004 - 10:33 AM
Last post by: wassie
No New Posts 5 Vacant 5,651 3rd December 2008 - 02:43 AM
Last post by: wingman23
No new 72 holyium 43,171 31st May 2009 - 10:02 PM
Last post by: nol
No new   26 -prodigy- 21,978 19th April 2008 - 08:19 AM
Last post by: HyBriD54
No New Posts 2 Jpacker 4,086 27th August 2004 - 03:02 PM
Last post by: OpaQue


 



RSS Open Discussion Time is now: 21st November 2009 - 02:16 PM

Web Hosting Powered by ComputingHost.com.