MySQL | vs | Flat File!
#1

Hello guys when i search through the forums i sometimes read that y_ini or INI is faster then MySQL i don't support this idea, but i just want to know if it is correct are there any speed tests ? Proving it ?
Reply
#2

Fact is that the speed difference between the two (flat file storage and database file storage) is not important in most cases, but what you should use depends on what you want to do with the stored information.

For example, iterating through a list of users is really complicated when using multiple files. I mean, it is doable and can be scripted, but it will also be slow. Whereas, the same operation will most likely take like 10ms in the SQL server and the internal processor works with one, neatly indexed and laid out file, not multiple files.

However a badly tuned MySQL database/table is as bad as reading multiple huge flat-files in a loop! So watch out to optimize your creation!
Reply
#3

Quote:
Originally Posted by AndreT
Посмотреть сообщение
Fact is that the speed difference between the two (flat file storage and database file storage) is not important in most cases, but what you should use depends on what you want to do with the stored information.

For example, iterating through a list of users is really complicated when using multiple files. I mean, it is doable and can be scripted, but it will also be slow. Whereas, the same operation will most likely take like 10ms in the SQL server and the internal processor works with one, neatly indexed and laid out file, not multiple files.

However a badly tuned MySQL database/table is as bad as reading multiple huge flat-files in a loop! So watch out to optimize your creation!
So what is good from two from a small DM/TDM script ?
Reply
#4

It all depends on amount of players in my opinion. Ini-files works well, but i am using MySQL because i believe that is faster.
However, it all depends on what use it is for.
Reply
#5

Quote:
Originally Posted by Glint
Посмотреть сообщение
So what is good from two from a small DM/TDM script ?
Files should do you fine, easy to edit and most file includes (Such as Y_INI) are user-friendly.

If you want leaderboards on a website, then MySQL is the way to go my friend, but it's a bit more advanced.
Reply
#6

OK guys thanks for all of the responses.

Rep'ed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)