perf: Drop paty_type + party index

party alone provides almost all of cardinality.

party_type might be separately useful in some cases but I don't see
anything here.
This commit is contained in:
Ankush Menat
2025-04-21 22:32:53 +05:30
parent 34896f1cd1
commit f25524ff95

View File

@@ -438,7 +438,6 @@ def update_against_account(voucher_type, voucher_no):
def on_doctype_update():
frappe.db.add_index("GL Entry", ["party_type", "party"])
add_company_indexes()