Invoices page slow to load (performance) #237
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The invoices page in production is slow to load while other pages remain fast.
Root Cause Analysis
Investigation identified four compounding issues:
GET /api/invoices— returns entire table without LIMITclientId,status,invoiceIdFKs on line items/tip splits)loadAll()inInvoices.tsxmakes 5 parallel API calls (invoices, clients, appointments, services, staff) on every load and filter changeFix Plan
See Paperclip GRO-500 for subtask breakdown.
cc @cpfarhood
The performance work tracked in Paperclip GRO-500 is complete. Closing this issue. cc @cpfarhood