NonconcurrentDB returns the nonconcurrent app data db instance (pb_data/data.db).
The returned db instance is limited only to a single open connection,
meaning that it can process only 1 db operation at a time (other operations will be queued up).
This method is used mainly internally and in the tests to execute write
(save/delete) db operations as it helps with minimizing the SQLITE_BUSY errors.
For the majority of cases you would want to use the regular DB() method
since it allows concurrent db read operations.
In a transaction the ConcurrentDB() and NonconcurrentDB() refer to the same *dbx.TX instance.
NonconcurrentDB returns the nonconcurrent app data db instance (pb_data/data.db).
The returned db instance is limited only to a single open connection, meaning that it can process only 1 db operation at a time (other operations will be queued up).
This method is used mainly internally and in the tests to execute write (save/delete) db operations as it helps with minimizing the SQLITE_BUSY errors.
For the majority of cases you would want to use the regular DB() method since it allows concurrent db read operations.
In a transaction the ConcurrentDB() and NonconcurrentDB() refer to the same *dbx.TX instance.