Files
erpnext/erpnext
marination 767a775709 perf: get_next_higher_level_boms
- Separate getting dependants and checking if they are valid (loop within loop led to redundant processing that slowed down function)
- Adding to above, the same dependant(parent) was repeatedly processed as many children shared it. Expensive.
- Use a parent-child map similar to child-parent map to check if all children are resolved
- `map.get()` reduced time: 10 mins -> 0.9s~1 second (as compared to `get_cached_doc` or query)
- Total time: 17 seconds to process 6599 leaf boms and 4.2L parent boms
- Previous Total time: >10 mins (I terminated it due to not wanting to waste time XD)
2022-05-27 21:16:07 +05:30
..
2022-04-12 23:31:47 +05:30
2022-03-29 17:29:34 +05:30
2022-03-29 17:29:34 +05:30
2022-04-11 16:55:22 +05:30
2022-03-29 17:29:34 +05:30
2022-03-29 17:29:34 +05:30
2022-05-16 17:13:00 +05:30
2022-05-15 16:42:34 +05:30
2022-05-25 16:47:54 +05:30