perf: remove voucher_type + voucher_no index

Voucher_no is real source of cardinality here... voucher_type will just
be 10-20 unique types, not really helping much here.
This commit is contained in:
Ankush Menat
2025-04-21 22:29:51 +05:30
parent 4cbc92649f
commit 34896f1cd1

View File

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