Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: improve query performance for Metric.latest
Currently it pulls all records from the database but only uses the most recent amount value. This is inefficient, particularly if the database is large. Now it only retrieves the amount from the most recent record and ignores all the old ones.
- Loading branch information