read_sites_from_exposure() parses the entire exposure model unnecessarily
Bug #932656 reported by
Muharem Hrnjadovic
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
Medium
|
Lars Butler |
Bug Description
[et=8h]
[at=5.5h]
read_sites_
Notes from Lars:
This function could just be re-written to query the sites from the exposure model in the database.
Changed in openquake: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: nrml performance risk techdebt |
description: | updated |
Changed in openquake: | |
assignee: | nobody → Lars Butler (lars-butler) |
milestone: | none → 0.6.1 |
description: | updated |
Changed in openquake: | |
status: | In Progress → Fix Committed |
Changed in openquake: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I found also the function is really slow in checking for duplicates when we use an exposure of a reasonable size (I used an exposure with 50k~ assets). Maybe we can address this problem at the same time.