Best way of saving data?

Discussion in 'Plugin Development' started by Kyle FYI, Jun 10, 2013.

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

    Kyle FYI

    I was wondering what the best way of saving user data would be. I was thinking MySQL but I don't want to connect each time and grab the info as it will be used a lot.(When every player joins).
     
  2. Offline

    microgeek

    That's not a lot of connections. You open one connection and query when needed.
     
  3. Offline

    chasechocolate

    Run it async and it should be fine.
     
  4. Offline

    james137137

    My simple way is using the normal Writer as if it was a txt file. If its going to be constantly read or its going to get big then I think MySQL might be best

    The questions I would ask myself are;

    How often do I need to read and write data?
    How big could this file(s) become?
    Do I want my Server Admins to depend on MySQL?
    Do I understand how to program for MySQL?

    I think you can always use the same connection
     
  5. Offline

    thecrystalflame

    you need to tell us what kind of data you are intending to save.
     
  6. Offline

    InflamedSebi

  7. Offline

    Kyle FYI

    I want to use yml but I can't find out how, any help? (I'm new to java).
     
  8. Offline

    jtjj222

  9. Offline

    Kyle FYI

Thread Status:
Not open for further replies.

Share This Page