1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Save task lag economyapi

Discussion in 'Development' started by Hipster, Oct 14, 2017.

  1. Hipster

    Hipster Zombie

    Messages:
    214
    Save task of economyapi lags too much, how to fix that? i tried delaying it but still it lags.
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Make it async
     
  3. Hipster

    Hipster Zombie

    Messages:
    214
    If only that was easy
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Don't use the YAML provider if you have a large server.

    If you really want to use YAML provider, this may be a (bad) (untested) workaround, but you should use MySQL anyway, since YAML provider takes a lot of memory.
    To make it async, you need to pass the whole data array to another thread, which involves serializing all player data. This will be extremely laggy anyway.
    My approach is to write it progressively, by hacking YAML.
     
    jasonwynn10 likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.