From 1b1126c1c8ca86753c6326bbd4d24bd6db1179d1 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Mon, 9 Dec 2024 14:38:59 +0530 Subject: [PATCH] perf: index document name (#28718) Moved index from doctype to docname. Docname always has higher cardinality. Even if you filter by both it shouldn't matter as cross-doctype name conflicts are rather rare. Perf impact of this change should be net 0 but it does addresses problem of indeterministic load times based on how many errors exist in db. closes https://github.com/frappe/frappe/issues/28713 --- frappe/core/doctype/error_log/error_log.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frappe/core/doctype/error_log/error_log.json b/frappe/core/doctype/error_log/error_log.json index 64b9948cc2..4218689cc8 100644 --- a/frappe/core/doctype/error_log/error_log.json +++ b/frappe/core/doctype/error_log/error_log.json @@ -42,8 +42,7 @@ "in_standard_filter": 1, "label": "Reference DocType", "options": "DocType", - "read_only": 1, - "search_index": 1 + "read_only": 1 }, { "fieldname": "reference_name", @@ -51,7 +50,8 @@ "in_list_view": 1, "in_standard_filter": 1, "label": "Reference Name", - "read_only": 1 + "read_only": 1, + "search_index": 1 }, { "fieldname": "column_break_3", @@ -72,7 +72,7 @@ "idx": 1, "in_create": 1, "links": [], - "modified": "2024-06-05 05:34:35.048489", + "modified": "2024-12-09 14:22:44.819718", "modified_by": "Administrator", "module": "Core", "name": "Error Log", @@ -94,4 +94,4 @@ "sort_order": "DESC", "states": [], "title_field": "method" -} +} \ No newline at end of file