Files
erpnext/erpnext/stock
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
..
2023-05-29 14:44:54 +05:30
2022-07-12 12:39:22 +05:30
2025-04-07 11:28:39 +05:30
2013-12-11 10:43:52 +05:30