Ankush Menat
433489a9e6
perf: Index pick list field in stock entry and DN (#35738)
We check if pick list is created against them but there's no index so we
end up reading entire table.
```
+------+-------------+------------------+-------+---------------+----------+---------+------+--------+-----------+----------+------------+-------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | r_rows | filtered | r_filtered | Extra |
+------+-------------+------------------+-------+---------------+----------+---------+------+--------+-----------+----------+------------+-------------+
| 1 | SIMPLE | tabDelivery Note | index | NULL | modified | 9 | NULL | 207015 | 348940.00 | 100.00 | 0.00 | Using where |
+------+-------------+------------------+-------+---------------+----------+---------+------+--------+-----------+----------+------------+-------------+
```
After
```
+------+-------------+------------------+------+-----------------+-----------------+---------+-------+------+--------+----------+------------+------------------------------->
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | r_rows | filtered | r_filtered | Extra >
+------+-------------+------------------+------+-----------------+-----------------+---------+-------+------+--------+----------+------------+------------------------------->
| 1 | SIMPLE | tabDelivery Note | ref | pick_list_index | pick_list_index | 563 | const | 1 | 0.00 | 100.00 | 100.00 | Using index condition; Using w>
+------+-------------+------------------+------+-----------------+-----------------+---------+-------+------+--------+----------+------------+------------------------------->
```
2023-06-16 15:26:40 +05:30
..
2023-06-02 17:14:18 +05:30
2023-05-03 18:21:23 +05:30
2023-06-09 09:30:24 +05:30
2023-06-16 15:26:40 +05:30
2023-06-02 17:14:14 +05:30
2022-06-28 11:51:59 +05:30
2023-05-13 13:00:05 +05:30
2023-06-13 17:30:38 +05:30
2023-03-08 20:07:30 +05:30
2023-01-12 20:53:12 +05:30
2023-02-19 19:36:05 +05:30
2022-04-11 14:35:22 +05:30
2022-03-28 18:52:46 +05:30
2023-02-23 20:47:48 +05:30
2022-09-07 12:59:46 +05:30
2022-03-28 18:52:46 +05:30
2023-06-13 17:30:38 +05:30
2022-03-28 18:52:46 +05:30
2023-06-13 17:30:38 +05:30
2023-05-07 20:27:17 +05:30
2023-06-02 17:14:14 +05:30
2023-05-01 07:25:36 +05:30
2023-04-28 15:05:28 +05:30
2023-06-16 15:26:01 +05:30
2023-06-16 14:06:24 +05:30
2023-02-13 20:56:05 +05:30
2023-06-13 17:30:38 +05:30
2023-06-02 17:14:14 +05:30
2023-06-02 17:14:18 +05:30
2023-06-13 17:30:38 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2023-05-31 18:20:56 +05:30
2023-06-14 15:04:36 +05:30
2023-06-02 17:14:17 +05:30
2023-06-02 17:14:18 +05:30
2022-11-17 22:16:43 +01:00
2023-06-16 15:26:40 +05:30
2023-06-02 17:14:14 +05:30
2022-03-28 18:52:46 +05:30
2023-06-13 17:30:38 +05:30
2023-06-15 12:56:41 +05:30
2023-06-15 12:56:41 +05:30
2023-05-04 16:49:14 +05:30
2023-06-02 17:14:18 +05:30
2023-06-13 17:30:38 +05:30
2022-03-25 16:18:58 +05:30
2023-05-29 14:44:54 +05:30