Skip to content

Commit

Permalink
perf: Index sales_order_item in Pick list item (#35735)
Browse files Browse the repository at this point in the history
- `get_picked_items_qty` does full table scan
- because it also locks, it does full table lock.
  • Loading branch information
ankush authored Jun 16, 2023
1 parent 50f8385 commit 07d748c
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 @@ -153,7 +153,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 @@ -208,7 +209,7 @@
],
"istable": 1,
"links": [],
"modified": "2023-03-12 13:50:22.258100",
"modified": "2023-06-16 14:05:51.719959",
"modified_by": "Administrator",
"module": "Stock",
"name": "Pick List Item",
Expand Down

0 comments on commit 07d748c

Please sign in to comment.