Home loads faster
Totals are worked out in the database, and Home loads its parts at the same time.
Home now asks the database for less, and asks fewer times.
What changed
- Month totals and the yearly ledger summary are added up inside the database. Before, Trove loaded every row of the year and added them up itself.
- Reads Home makes at the same moment are sent to the database as one request instead of one each.
- The profile, preferences and exchange rates load together instead of one after another.
- Moving between pages fades in over 150 milliseconds instead of 400.
What we measured
On a test ledger of 3,000 transactions over a year:
| Before | After | |
|---|---|---|
| Database requests to open Home | 29 | 3 |
| Rows loaded for the yearly summary | 3,001 | 828 |
Those numbers come from a local database, where a request costs almost nothing, so page load time did not change there. We have not measured the live site. The gain should show where each request crosses a network, which is the live database.
Same figures
The new totals were checked against the old calculation on the same data, including transactions near midnight on the first and last day of a month in India Standard Time. They match.