diff --git a/plugins/DB.cpp b/plugins/DB.cpp index a14319dc7..bd1d92f0e 100644 --- a/plugins/DB.cpp +++ b/plugins/DB.cpp @@ -72,6 +72,10 @@ bool BedrockDBCommand::peek(SQLite& db) { return false; } + // We rollback here because if we are in a transaction and the querytakes long (which the queries in this command can) + // it prevents sqlite from checkpointing and if we accumulate a lot of things to checkpoint, things become slow + ((SQLite&) db).rollback(); + // Attempt the read-only query SQResult result; if (!db.read(query, result)) {