* Enclose most operations that update the database in transactions.
* Open all database tables (Db objects) at initialisation time, not every time they are used. This is necessary because tables have to outlive all transactions that refer to them.
Showing
- src/db.cc 76 additions, 55 deletionssrc/db.cc
- src/db.hh 16 additions, 9 deletionssrc/db.hh
- src/globals.cc 8 additions, 8 deletionssrc/globals.cc
- src/globals.hh 4 additions, 4 deletionssrc/globals.hh
- src/normalise.cc 3 additions, 1 deletionsrc/normalise.cc
- src/store.cc 38 additions, 19 deletionssrc/store.cc
Loading
Please register or sign in to comment