* src/GrampsDb/_GrampsBSDDB.py (_find_from_handle): Revert the

change, as it does not seem to bring any speedup.


svn: r5862
This commit is contained in:
Alex Roitman 2006-02-01 19:11:25 +00:00
parent 265ea23bc4
commit dbc0c52fc5
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-02-01 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (_find_from_handle): Revert the
change, as it does not seem to bring any speedup.
2006-01-31 Alex Roitman <shura@gramps-project.org> 2006-01-31 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsDbBase.py (find_next_*_gramps_id): check * src/GrampsDb/_GrampsDbBase.py (find_next_*_gramps_id): check
whether the key exists, do not read. whether the key exists, do not read.

View File

@ -960,7 +960,7 @@ class GrampsBSDDB(GrampsDbBase):
def _find_from_handle(self,handle,transaction,class_type,dmap,add_func): def _find_from_handle(self,handle,transaction,class_type,dmap,add_func):
obj = class_type() obj = class_type()
handle = str(handle) handle = str(handle)
if dmap.db.has_key(handle): if dmap.has_key(handle):
data = dmap.get(handle,txn=self.txn) data = dmap.get(handle,txn=self.txn)
obj.unserialize(data) obj.unserialize(data)
else: else: