mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user