Speed up Transactions, Reconcile and the transactions export again by reading the ledger lines first and joining each to its account with STRAIGHT_JOIN instead of letting the optimizer look lines up through a temporary index, and stop billable expenses waiting to be invoiced from slowing every page: database update 3.5.5 indexes expenses.expense_refund_of_id so the side menu count, the invoice page, Add Expenses and the expense quick look no longer check each waiting expense against every expense; 26.11.2 changelog updated

This commit is contained in:
johnnyq
2026-11-02 16:29:18 -05:00
parent 469f3df2e7
commit 278df4e7b3
4 changed files with 39 additions and 4 deletions

3
db.sql
View File

@@ -1746,7 +1746,8 @@ CREATE TABLE `expenses` (
KEY `expense_invoice_id` (`expense_invoice_id`),
KEY `expense_import_key` (`expense_import_key`),
KEY `expense_reimbursement_id` (`expense_reimbursement_id`),
KEY `expense_reconciliation_id` (`expense_reconciliation_id`)
KEY `expense_reconciliation_id` (`expense_reconciliation_id`),
KEY `expense_refund_of_id` (`expense_refund_of_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;