Files
erpnext/erpnext
pandiyan c10b86d538 perf: avoid per-row Warehouse doc fetches in auto reorder job
get_item_warehouse_projected_qty() called frappe.get_doc("Warehouse", ...)
inside the per-bin loop to walk up the warehouse hierarchy, re-fetching the
same parent warehouses over and over on sites with nested warehouses. Preload
the warehouse-to-parent mapping with a single query and walk it in-memory
instead, cutting the DB round-trips from O(bins * hierarchy depth) to one
query.

(cherry picked from commit 6beb3d2509)
2026-07-10 11:41:43 +05:30
..
2026-01-13 10:50:15 +05:30
2022-03-28 18:52:46 +05:30
2022-04-28 12:02:54 +05:30
2022-03-28 18:52:46 +05:30