Commit 3bcac6d3 authored by Julien Muchembled's avatar Julien Muchembled

importer: do not trigger speedupFileStorageTxnLookup uselessly

When importing a FileStorage DB without interruption and without having to
serve client nodes, the index built by speedupFileStorageTxnLookup is useless.
Such case happens when doing simulation tests and on DB with many oids,
it can take a lot of time and memory for nothing.
parent fd80cc30
...@@ -356,7 +356,7 @@ class ImporterDatabaseManager(DatabaseManager): ...@@ -356,7 +356,7 @@ class ImporterDatabaseManager(DatabaseManager):
def _import(self): def _import(self):
p64 = util.p64 p64 = util.p64
u64 = util.u64 u64 = util.u64
tid = p64(self.zodb_tid + 1) tid = p64(self.zodb_tid + 1) if self.zodb_tid else None
zodb_list = [] zodb_list = []
for zodb in self.zodb: for zodb in self.zodb:
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment