Skip to content
Snippets Groups Projects
Commit 12c42fea authored by Radko Krkoš's avatar Radko Krkoš
Browse files

ctlog_importer: Make DB commit more frequent

* The original interval was 10000 certificates. Now decreased to
  1000, as it looks like a performance bottleneck after comming
  to the phase when most operations are updates.
parent 968ac41f
Branches
Tags
No related merge requests found
...@@ -112,7 +112,7 @@ def main(): ...@@ -112,7 +112,7 @@ def main():
numredundant = numredundant + 1 numredundant = numredundant + 1
else: else:
raise KeyError('Unknown DB save outcome') raise KeyError('Unknown DB save outcome')
if numdomains % 10000 == 0: if numdomains % 1000 == 0:
database.commit() database.commit()
database.commit() database.commit()
logger.info("Gathered %d certificates containing %d domain names: %d new, %d updated, %d redundant, %d invalid", logger.info("Gathered %d certificates containing %d domain names: %d new, %d updated, %d redundant, %d invalid",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment