AppleDash / SaneEconomy

Finally, a sane economy plugin for Bukkit.
https://www.spigotmc.org/resources/saneeconomy-simple-but-featureful-economy.26223/
GNU General Public License v3.0
19 stars 24 forks source link

Slow economy response with towny #73

Closed nathan-li-dev closed 5 years ago

nathan-li-dev commented 6 years ago

I'm using towny version 0.92.0.5 and saneconomy version 0.13.1-SNAPSHOT, and I'm noticing very slow responses, especially on towny's new days (where it collects taxes, once every 24 hours)

Here's my config file:

backend:
  type: MySQL
  host: localhost
  port: 3306
  database: ***
  username: ***
  password: ***
currency:
  name:
    singular: '&7dollar'
    plural: '&7dollars'
  balance-format: '{1} {2}'
  format: '0.00'
  grouping: 3
  grouping-separator: ','
chat:
  prefix: '&fEco &8&l>> &7'
economy:
  start-balance: 100.0
  notify-start-balance: false
  server-account: $SERVER$
locale-override: false
debug: false
AppleDash commented 6 years ago

Hmm, that's a bit weird... Define slow responses? All responses should be basically instant, because I cache everything and writes to the database are async. How many active players does your server have per day?

nathan-li-dev commented 6 years ago

Not many (under 20 peak), and there's only around 30 towns total.

Every new day, if towny taxes are set to be collected, the server freezes for a good 15 seconds to collect taxes from residents and towns.