why not use flatfiles with big stuff?

Discussion in 'Plugin Development' started by kaskoepoes112, Apr 12, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    kaskoepoes112

    Hey,

    This question isn't really about java , but more about data storing.
    I'm developing a plugin that must hold data for around 3000 players. People say that with that amount of people I can better use MySQL. My question is : why ? why can't you use a .yml file for that , is it too slow or something?

    The reason why I'm asking this is that I don't understand Mysql querys and stuff like that in java. And I was thinking why the hell am I doing this with mysql instead of flatfiles.
     
  2. Offline

    xmarinusx

    I had the same problem as you, but since I'm done watching all videos of this guy: I can write all of the basic SQL quaries.
     
  3. Offline

    Tirelessly

    With files you're making the minecraft server handle all the opening and such. With mySQL you're making the mySQL server handle that. It's faster.
     
  4. Offline

    Ne0nx3r0

    kaskoepoes112 Well, depending on your use for the data a flatfile setup might be just fine.

    Essentials for example does this, as data is loaded and saved for one specific player at a time and none of the data is compared.
     
  5. its a hell to copy the file from essentials to another server over ftp when you have a lot of users on your server, thats the drawback of flatfiles
     
  6. Offline

    Ne0nx3r0

    On the bright side, it's much simpler to remove outdated entries; you can also zip them.

    It just depends on the use case.
     
  7. Offline

    kaskoepoes112

    thanks for the information !

    xmarinusx bedankt!
     
Thread Status:
Not open for further replies.

Share This Page