Skip to content

Commit

Permalink
Skip bills import postimport hook, to avoid expensive DB query volume
Browse files Browse the repository at this point in the history
bills postimport() tries to resolve all old un-linked related bills. And there are many!
  • Loading branch information
jessemortenson committed Oct 26, 2023
1 parent a4b7cfa commit 4d8009f
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 134 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def do_import(jurisdiction_id: str, datadir: str) -> None:
# datadir = os.path.join(settings.SCRAPED_DATA_DIR, state)

juris_importer = JurisdictionImporter(jurisdiction_id)
bill_importer = BillImporter(jurisdiction_id)
bill_importer = BillImporter(jurisdiction_id, do_postimport=False)
vote_event_importer = VoteEventImporter(jurisdiction_id, bill_importer)
event_importer = EventImporter(jurisdiction_id, vote_event_importer)
logger.info(f"Datadir: {datadir}")
Expand Down
Loading

0 comments on commit 4d8009f

Please sign in to comment.