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.
This commit is contained in:
Ankush Menat 2023-06-16 14:06:24 +05:30 committed by GitHub
parent 50f83859db
commit 07d748c290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
@ -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",