uo-lca / CalRecycleLCA

CalRecycle Used Oil LCA Online Tool
Other
0 stars 0 forks source link

Improve performance of LcaDataLoader #19

Closed uo-lca closed 9 years ago

uo-lca commented 9 years ago

Was able to reduce run time loading all LCA_Data files by about 50% (20 -> 10 min. on dev computer). Most significant reduction comes from disabling AutoDetectChanges when a large number of entities are added and not updated. Relevant commits:

Keeping this issue open because I plan to make more improvements later.

uo-lca commented 9 years ago

Reduced run time by another 50% (10 -> 5 min. on dev computer) by caching a mapping of UUID to internal ID (FlowID, ProcessID, etc.).