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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user