Optimization - TDB2 access
- Broke TDB2::load into TDB2::load, TDB2::loadPending and TDB2::loadCompleted. - Converted "projects" and "tags" reports to use this.
This commit is contained in:
@@ -98,7 +98,7 @@ std::string handleProjects ()
|
||||
|
||||
std::vector <Task> tasks;
|
||||
context.tdb.lock (context.config.get ("locking", true));
|
||||
int quantity = context.tdb.load (tasks, context.filter);
|
||||
int quantity = context.tdb.loadPending (tasks, context.filter);
|
||||
context.tdb.unlock ();
|
||||
|
||||
// Scan all the tasks for their project name, building a map using project
|
||||
@@ -155,7 +155,7 @@ std::string handleTags ()
|
||||
|
||||
std::vector <Task> tasks;
|
||||
context.tdb.lock (context.config.get ("locking", true));
|
||||
int quantity = context.tdb.load (tasks, context.filter);
|
||||
int quantity = context.tdb.loadPending (tasks, context.filter);
|
||||
context.tdb.unlock ();
|
||||
|
||||
// Scan all the tasks for their project name, building a map using project
|
||||
|
||||
Reference in New Issue
Block a user