Hi @yangzh, Badger ensures that you get a consistent view of the database within a transaction closure. Any writes that happen elsewhere after the transaction has started, will not be seen by calls made within the closure. So to get a fresh view of your database, you will need to create a new transaction. I believe this has answered your query.