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
This commit is contained in:
Ankush Menat 2024-12-09 14:38:59 +05:30 committed by GitHub
parent 60bc472ab6
commit 1b1126c1c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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