Cless Posted November 1, 2008 Share Posted November 1, 2008 My site is primary run on MySQL, however, due to its extensive lag, I was planning on using flat files for certain things (I would not store secure information, of course). Anyway, disregarding that, the only thing I want to know is: are flat files quicker than MySQL databases? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/130948-mysql-versus-flat-files/ Share on other sites More sharing options...
DarkWater Posted November 1, 2008 Share Posted November 1, 2008 Flat files can be much slower and are EXTREMELY unwieldy for large data sets. I'd stick with MySQL. And when you say it's slow, how slow are you talking about? Quote Link to comment https://forums.phpfreaks.com/topic/130948-mysql-versus-flat-files/#findComment-679777 Share on other sites More sharing options...
PFMaBiSmAd Posted November 1, 2008 Share Posted November 1, 2008 Mysql uses compiled code to performs database operations on the files that it uses to hold your data. Using some slow parsed/tokenized/interpreted php code to perform operations on the contents of a file yourself will be at least 20 times slower. Quote Link to comment https://forums.phpfreaks.com/topic/130948-mysql-versus-flat-files/#findComment-679781 Share on other sites More sharing options...
DarkWater Posted November 1, 2008 Share Posted November 1, 2008 Flat files can be much slower and are EXTREMELY unwieldy for large data sets. I'd stick with MySQL. And when you say it's slow, how slow are you talking about? Quote Link to comment https://forums.phpfreaks.com/topic/130948-mysql-versus-flat-files/#findComment-679783 Share on other sites More sharing options...
laffin Posted November 1, 2008 Share Posted November 1, 2008 I disagree, Flat files can be fast and efficient means of storing info. Caches are usually based on flat file designs, as well as the popular subset of SQL known as SQLite. And hands down it beats MySQL. So YES, ya can move some of the data into a flat file schema and improve performance. But as with any DB, Design for optimized usage. Quote Link to comment https://forums.phpfreaks.com/topic/130948-mysql-versus-flat-files/#findComment-679849 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.