CodeIgniter Forums
Flat file vs database driven systems - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3)
+--- Thread: Flat file vs database driven systems (/showthread.php?tid=63230)



Flat file vs database driven systems - ignitedcms - 10-09-2015

Hi guys,

With the rise in popularity of flat file system/cms now, I just wondered what everyone else thought about the pros and cons of this versus database driven systems.

I can see some pros but honestly, I've spent so long always developing db driven systems as I'm sure everyone else has to even consider a flat file system.

With db querying it just makes sense to stick with db driven systems. Does anyone else have any thoughts? I'd be eager to hear. P.S no flame war please, but I know the community is good with that anyway.


RE: Flat file vs database driven systems - Narf - 10-09-2015

Rise in popularity? Where did you get that from?


RE: Flat file vs database driven systems - ignitedcms - 10-09-2015

Howdy Narf. I was looking at the following link, http://www.webhostingsearch.com/articles/flat-file-cms.php

Of course the term 'rise' is subjective. Not saying it's a huge rise but it just seems interesting. what's your thoughts, or have you ever worked with a flat file system/cms?


RE: Flat file vs database driven systems - ivantcholakov - 10-09-2015

Sooner or later your clients will ask for more that a flat-file CMS is not able to provide. If such a system has means to be upgraded easily to a file and database driven one, then maybe it could be used for commercial development.


RE: Flat file vs database driven systems - ignitedcms - 10-11-2015

Quote:maybe it could be used for commercial development.

Some of the flat file systems shown in my link are considered 'enterprise'. I don't think they would have that business model if it couldn't do most of the other things the database driven one can (for commercial development)


RE: Flat file vs database driven systems - Narf - 10-11-2015

(10-11-2015, 07:34 AM)iamthwee Wrote:
Quote:maybe it could be used for commercial development.

Some of the flat file systems shown in my link are considered 'enterprise'. I don't think they would have that business model if it couldn't do most of the other things the database driven one can (for commercial development)

Don't believe everything you read on the internet.


RE: Flat file vs database driven systems - slax0r - 10-11-2015

Why would you want a flat-file app anyway? Storing data in DB can be faster, than storing into a file. Provided your DB is configured and designed properly. Especially when your dataset gets larger.


RE: Flat file vs database driven systems - ignitedcms - 10-11-2015

Quote:Why would you want a flat-file app anyway

Well yes, my thoughts exactly however, I was lucky enough to get chatting to https://twitter.com/jackmcdade founder of a fairly polished CMS. So it got me wondering.

Thanks for the pointer narf Wink


RE: Flat file vs database driven systems - John_Betong - 10-11-2015

Check out my blog which explains how I use CodeIgniter to implement a flat file system.

http://anetizer.com/eureka-for-making-a-web-page-load-faster

Also check the following and notice the Debug in the footer, if it displays{elapsed_time} and {memory_usage} the page is cached.

http://www.johns-jokes.com/jotd/2140

Please excuse CSS errors, the site is in the process of being transferred to a new server.