Economy /baltop load times / cache times

Discussion in 'Server Gameplay Suggestions' started by Awesomolocity, May 2, 2022.

  1. Awesomolocity
    Offline

    Awesomolocity Well-Known Member

    Joined:
    May 7, 2013
    Messages:
    416
    IGN:
    Awesomolocity
    When freshly loading /baltop it takes approximately 2-3 minutes for the list to load, only for the cache to expire 2-3 minutes later. This is uh...not ideal.

    After some pondering, I think there's a few different routes that could be taken that could drastically improve things.
    • Store balances in a database. This would CERTAINLY take a while to convert existing user balances to be stored in a database AND likely require a fair amount of custom code to get this to work. However, databases are GREAT at storing this type of data and ordering it. Taking the time to do this would make /baltop very quick and responsive. Given unlimited time / resources, this would probably be the "best" option.
    • Prune inactive users. This is the idea that I like the least, however it would work. You'd certainly want a way to allow those inactive users to recover their data however, in case someone decides to return from a long hiatus. This might be more trouble than it's worth for many reasons.
    • Increase the cache length. Probably the simplest option; increasing the cache length to...even 15-30 minutes could be incredibly nice in terms of at least being able to use baltop for a while without having to refresh it. Realistically, it's rare that someone needs fully up to date data when they're using baltop anyways.
     
    • Support Support x 5
  2. luka
    Offline

    luka macdondalds Moderator Premium

    Joined:
    Apr 10, 2016
    Messages:
    3,033
    IGN:
    Houzo
    idea 1 and 3 are great! As a skyblock player, i too get annoyed when i have to wait 3 mins to see who the rich people are on eco
     
    • Agree Agree x 2
  3. Queen
    Offline

    Queen Well-Known Member

    Joined:
    Oct 22, 2021
    Messages:
    770
    IGN:
    QueenxAlex
    baltop sucks fr support
     
  4. Ca1
    Offline

    Ca1 Senior Member

    Joined:
    Apr 24, 2014
    Messages:
    4,105
    Other than it being annoying with a long load time, unbeknownst to most running this command actually takes a toll on server resources. I remember during times of low tps in 2020-21 you could crash the server by running the command. Something needs to be done to optimise this as the list is only going to get longer and longer
     
  5. KhalDrogo
    Offline

    KhalDrogo Experienced Member

    Joined:
    Sep 22, 2015
    Messages:
    2,498
    IGN:
    Drogo
    The top 90 balances can be seen by clicking on the signs on the top 5 pedestals at /spawn. Albeit, it just shows players heads that you have to mouse over to see the names.
    The 90th player has under 6 million, which really isn't that much.
    Drogo doesn't know if anyone would want to see any more beyond this and as it appears they are already cached, perhaps have /baltop display just those 90 players. Maybe have an option to "see more"

    It would also be very handy if the balances had comma's at the thousand, million and billion place values. i.e. $93,234,945 instead of $93234945
     
    • Agree Agree x 4
  6. Devannn_
    Offline

    Devannn_ Beyoncé Moderator

    Joined:
    Jul 6, 2016
    Messages:
    1,932
    IGN:
    Devannn_
    Support.

    Waiting for /baltop to load is annoying. I really like ideas one and three. Both seem simple and easy to incorporate and shouldn't take Developers a long time to do so.
     

Share This Page