craftconomy3 icon indicating copy to clipboard operation
craftconomy3 copied to clipboard

Issue with database syncing on the servers thread

Open ryzech opened this issue 3 years ago • 1 comments

craftconomy3-3.5.4-SNAPSHOT.jar//com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61)

Crafteconomy is making sync database calls to SQL on the servers main thread. This is locking the main thread of the server. So it throws errors and lags the server like crazy. I'm not sure if it's fixable but its quite an issue for my server.

ryzech avatar Oct 07 '21 19:10 ryzech

This can't be fixed as Vault expects all transactions to happen inside the method. And caching would open you up to desync exploits.

Phoenix616 avatar Sep 08 '23 18:09 Phoenix616