* 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:
parent
c867ab1937
commit
006d2995a2
@ -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.
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user