-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bentobox JSON lags too much #2404
Comments
I see a mixture of things:
|
blocklimits: I removed the limit plugin and the lag was fixed.
I shut down my server, |
Tasty, I tried migration on 2.2.0 and it worked, but on 2.4.0-dev it stopped working. It as complaining about too many accessing at the same time to SQLite database. Also I tried to migrate from SQLite to JSON and had the same issue. Migrating form JSON to MariaDB also run into issues. |
Okay. Thanks @BONNe. It sounds like this needs some looking into then. |
JSON2MARIADB works okay for me. I don't have a huge database, but it moved everything. @BONNe what error did you see? I'll try SQLite.
|
SQLite also moved fine. I'm guessing it may be something to do with he size of the database. Let me try and find one that is bigger... |
I had a look at the code and found the root cause:
Additional Problem (major):
For the main issue, there are two potential solutions:
I really wanted to do 2, but it became very complicated, which for a function that should be run just once, and very rarely, made the lift too heavy. So, I just added a 1 second delay to each table in the migration command, which is more than enough to allow the transition to happen. It's not a perfect solution, but good enough. These changes apply to any transition. So, transitions should be more robust now. I'd like to get feedback on whether any other issues are seen. |
Expected behavior
I'm probably experiencing a lot of lag because of the json, but when I want to migrate from JSON to SQLITE, I can't migrate because I get a lot of errors.
When I download from bentoboxworld site, I only get database locked error, but in jenkins version it can't even find the data of the players.
Observed/Actual behavior
The plugin is supposed to transfer the data correctly, but it fails to do so.
Steps/models to reproduce
BentoBox version
2.4.0 SNAPSHOT-b2645
Plugin list
I don't want to share.
Other
No response
The text was updated successfully, but these errors were encountered: