mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Better db laggy warning
Former-commit-id: 2260233557c9ad7ffb5b23feeb59e1e47b813a80 [formerly 45fec84caeaa806e9560cffbeabfbf1b0f4bf76f] Former-commit-id: 2c30d836dbfe219b3c998c7f74ac519172976536
This commit is contained in:
1 parent
61ae0f836f
commit
3a4a2ce5de
1 file changed
+2
-2
@@ -99,9 +99,9 @@ public class DatabaseManager {
|
||||
sqle.printStackTrace();
|
||||
}
|
||||
long tookTime = timer.endTimer();
|
||||
if (tookTime > 1500) {
|
||||
if (tookTime > 5000) {
|
||||
warningSender
|
||||
.sendWarn("Database performance warning: It took too long time (" + tookTime + "ms) to execute the task, change to a better MySQL server or switch to a local SQLite database!");
|
||||
.sendWarn("Database performance warning: It took too long time (" + tookTime + "ms) to execute the task, it may cause the network connection with MySQL server or just MySQL server too slow, change to a better MySQL server or switch to a local SQLite database!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user