diff options
author | 2024-02-12 11:52:12 +0000 | |
---|---|---|
committer | 2024-02-12 11:52:12 +0000 | |
commit | ede8f43635c37a05b72f250632d0b236a2709ca9 (patch) | |
tree | 77cc153ca12e85f5a5ae966dea004d3ac375680f /internal/metrics/metrics.go | |
parent | [docs] Fix a few things in the bare metal install (#2624) (diff) | |
download | gotosocial-ede8f43635c37a05b72f250632d0b236a2709ca9.tar.xz |
[performance] temporarily cache account status counts to reduce no. account counts (#2620)
* temporarily cache account status counts to reduce no. account counts
* whoops, forgot to initAccountCounts()
* use already fetched cache capacity value
* make cache a ptr type
* whoops, use count instead of just select
* fix to correctly use the transaction
* properly wrap that tx :innocent:
* correctly wrap both tx types
* outline retryOnBusy() to allow the fast path to be inlined
* return err on context cancelled
* remove unnecessary storage of context in stmt, fix Exec and Query interface implementations
* shutup linter
Diffstat (limited to 'internal/metrics/metrics.go')
0 files changed, 0 insertions, 0 deletions