From 0e57f4dd3ce44504a059be1a4d5f8f869ffe34b9 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 16 Jun 2023 15:22:44 +0530 Subject: [PATCH] perf: Index sales_order_item in Pick list item (backport #35735) (#35736) * perf: Index sales_order_item in Pick list item (#35735) - `get_picked_items_qty` does full table scan - because it also locks, it does full table lock. (cherry picked from commit 07d748c290453696590c723c58ba90736fe4423d) # Conflicts: # erpnext/stock/doctype/pick_list_item/pick_list_item.json * chore: conflicts --------- Co-authored-by: Ankush Menat --- erpnext/stock/doctype/pick_list_item/pick_list_item.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/pick_list_item/pick_list_item.json b/erpnext/stock/doctype/pick_list_item/pick_list_item.json index a6f8c0db4583..b887f7956408 100644 --- a/erpnext/stock/doctype/pick_list_item/pick_list_item.json +++ b/erpnext/stock/doctype/pick_list_item/pick_list_item.json @@ -149,7 +149,8 @@ "fieldtype": "Data", "hidden": 1, "label": "Sales Order Item", - "read_only": 1 + "read_only": 1, + "search_index": 1 }, { "fieldname": "serial_no_and_batch_section", @@ -191,7 +192,7 @@ ], "istable": 1, "links": [], - "modified": "2022-04-22 05:27:38.497997", + "modified": "2023-06-16 14:05:51.719959", "modified_by": "Administrator", "module": "Stock", "name": "Pick List Item",