diff --git a/ChangeLog b/ChangeLog index 919c889e2..c030853a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ the constructor. * src/GrampsDb/_GrampsBSDDB.py: Back to durable transactions, set TXN_NOSYNC flag only on batch transactions. + * src/GrampsDb/_ReadGedcom.py (parse_record): Do not add def_src + to person/family. Need to optimize the performance first. 2006-01-17 Martin Hawlisch * src/EventView.py (ui_definition): Add filter menu entry diff --git a/src/GrampsDb/_ReadGedcom.py b/src/GrampsDb/_ReadGedcom.py index 220d50364..300b6e20b 100644 --- a/src/GrampsDb/_ReadGedcom.py +++ b/src/GrampsDb/_ReadGedcom.py @@ -566,8 +566,8 @@ class GedcomParser: def parse_gedcom_file(self,use_trans=True): - self.trans = self.db.transaction_begin() - self.trans.set_batch(not use_trans) + self.trans = self.db.transaction_begin("",not use_trans) + #self.trans.set_batch(not use_trans) self.db.disable_signals() t = time.time() self.index = 0 @@ -715,10 +715,10 @@ class GedcomParser: if child: child.add_address(self.addr) self.db.commit_person(child, self.trans) - if len(self.family.get_source_references()) == 0: - sref = RelLib.SourceRef() - sref.set_base_handle(self.def_src.get_handle()) - self.family.add_source_reference(sref) + #if len(self.family.get_source_references()) == 0: + # sref = RelLib.SourceRef() + # sref.set_base_handle(self.def_src.get_handle()) + # self.family.add_source_reference(sref) self.db.commit_family(self.family, self.trans) del self.family elif matches[2] == "INDI": @@ -730,10 +730,10 @@ class GedcomParser: self.person = self.find_or_create_person(self.map_gid(gid)) self.added[self.person.get_handle()] = 1 self.parse_individual() - if len(self.person.get_source_references()) == 0: - sref = RelLib.SourceRef() - sref.set_base_handle(self.def_src.get_handle()) - self.person.add_source_reference(sref) + #if len(self.person.get_source_references()) == 0: + # sref = RelLib.SourceRef() + # sref.set_base_handle(self.def_src.get_handle()) + # self.person.add_source_reference(sref) self.db.commit_person(self.person, self.trans) del self.person elif matches[2] in ["SUBM","SUBN","REPO"]: