From 7f5062ed851815ae882ebd5af1b2896c17e23690 Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Fri, 12 May 2023 14:53:33 +0530 Subject: [PATCH] perf: index shift type and employee in checkins and assignment to avoid full table scans (cherry picked from commit bc8e3522fab7313929e0354f5189252637970fbe) --- hrms/hr/doctype/employee_checkin/employee_checkin.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hrms/hr/doctype/employee_checkin/employee_checkin.json b/hrms/hr/doctype/employee_checkin/employee_checkin.json index d34316dc0f..0eb63c1bdc 100644 --- a/hrms/hr/doctype/employee_checkin/employee_checkin.json +++ b/hrms/hr/doctype/employee_checkin/employee_checkin.json @@ -26,7 +26,8 @@ "fieldtype": "Link", "label": "Employee", "options": "Employee", - "reqd": 1 + "reqd": 1, + "search_index": 1 }, { "fetch_from": "employee.employee_name", @@ -48,7 +49,8 @@ "fieldtype": "Link", "label": "Shift", "options": "Shift Type", - "read_only": 1 + "read_only": 1, + "search_index": 1 }, { "fieldname": "column_break_4", @@ -107,10 +109,11 @@ } ], "links": [], - "modified": "2020-07-08 11:02:32.660986", + "modified": "2023-05-12 14:52:22.660264", "modified_by": "Administrator", "module": "HR", "name": "Employee Checkin", + "naming_rule": "Expression (old style)", "owner": "Administrator", "permissions": [ { @@ -203,6 +206,7 @@ ], "sort_field": "modified", "sort_order": "ASC", + "states": [], "title_field": "employee_name", "track_changes": 1 } \ No newline at end of file