Further optimization in the flatbasemodel:

* keep list of all possible keys in memory so database is no longer touched 
     for the searches. ==> a search is faster
   * bug fixes to previous patch set: show total and displayed number correctly


svn: r12726
This commit is contained in:
Benny Malengier
2009-06-29 13:37:15 +00:00
parent 7a5e5f4476
commit f07a12766a
10 changed files with 288 additions and 123 deletions

View File

@@ -120,6 +120,9 @@ class PlaceView(PageView.ListView):
Config.client.notify_add("/apps/gramps/interface/filter",
self.filter_toggle)
def column_ord_setfunc(self, clist):
self.dbstate.db.set_place_column_order(clist)
def get_bookmarks(self):
return self.dbstate.db.get_place_bookmarks()
@@ -261,10 +264,6 @@ class PlaceView(PageView.ListView):
PlaceView.COLUMN_NAMES,
self.set_column_order)
def set_column_order(self, clist):
self.dbstate.db.set_place_column_order(clist)
self.build_columns()
def column_order(self):
return self.dbstate.db.get_place_column_order()