Best way to save data

Discussion in 'Plugin Development' started by DrAgonmoray, Jun 29, 2013.

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

    DrAgonmoray

    yo.

    Each player is going to get some data (just a few Doubles each). Here's my questions:

    1. Should they each have their own file, or one big file for all of them?
    2. Should data be saved periodically (every minute?, plus onDisable()) or every time data gets changed?
    ty
     
  2. Offline

    Deckerz

    either way would take up the same amount of resource if you only load it when needed, or wise if you load it once and keep it in memory one big file is best just not good to edit really whereas individual files are easier to edit.

    Hope you understand what im getting @ :p
     
  3. Offline

    DrAgonmoray

    Yeah I suppose if I put everybody in one big file, I have to load all of them every time... It'll make saving take longer too.

    Okay, I'll use individual files, but I'm not sure about saving. For some reason I feel like saving every time I change something for a player will cause lag.

    These files will just be a few kb in size.
     
Thread Status:
Not open for further replies.

Share This Page