flokol120 / Spigot-Item-Chest-Sorter

A Spigot/Paper minecraft plugin to sort your messy items into separate chests | 💯% written in Kotlin
GNU General Public License v3.0
5 stars 6 forks source link

Flat-DB has 3MB size #21

Closed Leahcimkrob closed 3 years ago

Leahcimkrob commented 3 years ago

Can you add MySQL-Support?

flokol120 commented 3 years ago

@Leahcimkrob I dont really see the use in adding relational database support. The json file is read after the plugin is loaded and kept in-memory to be super fast. But feel free to implement it yourself, if you are able to.

Leahcimkrob commented 3 years ago

The Flat-File has 3 MB, if a user add another Chest to his System, the server will lagging.

flokol120 commented 3 years ago

@Leahcimkrob never experienced any lag on my server as it is being held in-memory. But I guess if you are low on memory this could be an issue :thinking: Unfortunately though I do not have enough free time to implement this feature. Maybe in a few months. As this would be quite a big change.

Leahcimkrob commented 3 years ago

image

The timing for ICS increases steadily as soon as a user uses the ICS

Leahcimkrob commented 3 years ago

So now the flat file is 4 MB. If there are 10 players on the server and one of them creates a new receiver chest, the TPS goes down, if there are 2 players in a row, the server crashes. Without ICs, the server is stable even with 40 players.

flokol120 commented 3 years ago

Thanks for keeping me updated, but I am still very short on free time :(

flokol120 commented 3 years ago

@Leahcimkrob I have just released 1.8.0 which introduces a 'performance mode'. Please update the plugin, enable the said 'performance mode' and report back.

Leahcimkrob commented 3 years ago

Sorry, but we use an other Sorter-Plugin.