Skip to content

Commit

Permalink
perf: Index sales_order_item in Pick list item (backport #35735) (#35736
Browse files Browse the repository at this point in the history
)

* 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 07d748c)

# Conflicts:
#	erpnext/stock/doctype/pick_list_item/pick_list_item.json

* chore: conflicts

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush committed Jun 16, 2023
1 parent 7339e44 commit 0e57f4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions erpnext/stock/doctype/pick_list_item/pick_list_item.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 0e57f4d

Please sign in to comment.