booksaw / BetterTeams

Create teams to fight to be the best (Minecraft Plugin)
https://www.spigotmc.org/resources/better-teams.17129/
MIT License
63 stars 43 forks source link

[BUG] Storage Performance Issues #604

Open kolderz opened 1 month ago

kolderz commented 1 month ago

What is the bug?

Why does every time a player attacks other players the plugin tries to query the database? You are supposed to cache this and not try to get data every time. A simple plugin like this shouldn't take that much process.

Expected Behaviour

It should not take that much resources.

How to Reproduce

Attack other players

Error message

None

Output of /teama version

Storage Method: com.booksaw.betterTeams.team.storage.storageManager.SQLStorageManager Minecraft Version: git-Purpur-2176 (MC: 1.20.4) Language Selected: messages Online mode: true Player count: 70 Current plugin version: 4.9.4

Additional Information

chrome_AiAjSBluKY