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:
Paul Beckingham
2009-06-10 23:12:11 -04:00
parent 9776495286
commit 8728312da6
3 changed files with 45 additions and 4 deletions

View File

@@ -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