Shoutbox

For all you webmasters! - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: For all you webmasters! (/showthread.php?tid=82052)

For all you webmasters! by Quantum on 03-02-2008 at 09:10 AM

If you had a CMS, would you use MYSQL, Sqlite or textfile?

I heard text file is super fast?


RE: For all you webmasters! by NanaFreak on 03-02-2008 at 09:13 AM

MySQL ftw


RE: For all you webmasters! by Quantum on 03-02-2008 at 09:14 AM

But, whats the fastest?


RE: For all you webmasters! by -dt- on 03-02-2008 at 09:53 AM

quote:
Originally posted by john-t
But, whats the fastest?
mysql since its running as a service
RE: For all you webmasters! by Matti on 03-02-2008 at 10:41 AM

MySQL is a service, it allows multiple connections at once, is easy to manage,... Seriously, if you learn how to use MySQL in PHP, you won't EVER want to use *.txt files anymore!

Imagine two almost simultaneous attempts to write to a single text file to update some stuff. The first instance reads it, then the second does. The first one writes some stuff to it, but the second one overwrites it without knowing that the first instance just wrote something else to that file. Thus, your first writing action will be lost. On a small server, this may not sound like a big problem, but imagine having a popular site with lots of visitors... then you'll be happy you've chosen for MySQL! :)

Don't know much about SQLite, but if Wikipedia is correct, it uses a .sqlite file to store the information in... Uh? :P


RE: For all you webmasters! by Quantum on 03-02-2008 at 10:42 AM

Yeah, or a .db. I can't have MYSQL know so its txt or db?


RE: For all you webmasters! by Eddie on 03-02-2008 at 12:44 PM

I've moved into MySQL / PHP development stuff now, very good :) definately MySQL!


RE: For all you webmasters! by Menthix on 03-02-2008 at 01:19 PM

Saving data to a plain text file is never desirable for a website, like Mattike said, it creates a lot of potential problems.

SQLite is great mostly for applications because it doesn't use a separate process to run in, instead it's called from libraries in the program itself (Firefox uses SQLite). For webservers you won't need a selfcontained solution, MySQL is widely supported, a lot of PHP scripts won't support anything else than MySQL.


RE: For all you webmasters! by Quantum on 03-02-2008 at 02:13 PM

So out of txtfiles and Sqlite i should use sqlite, right?


RE: For all you webmasters! by Menthix on 03-02-2008 at 02:21 PM

Exactly.