GoToSocial/internal/cache
kim ede8f43635
[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 😇

* 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
2024-02-12 11:52:12 +00:00
..
domain [bugfix] fix higher-level explicit domain rules causing issues with lower-level domain blocking (#2513) 2024-01-09 13:12:43 +00:00
headerfilter
cache.go [performance] temporarily cache account status counts to reduce no. account counts (#2620) 2024-02-12 11:52:12 +00:00
db.go [performance] temporarily cache account status counts to reduce no. account counts (#2620) 2024-02-12 11:52:12 +00:00
invalidate.go [performance] temporarily cache account status counts to reduce no. account counts (#2620) 2024-02-12 11:52:12 +00:00
size.go
slice.go [chore] update viper version (#2539) 2024-01-17 14:54:30 +00:00
util.go
visibility.go [performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535) 2024-01-19 12:57:29 +00:00