mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-13 19:47:30 -06:00
[feature/performance] Store account stats in separate table (#2831)
* [feature/performance] Store account stats in separate table, get stats from remote * test account stats * add some missing increment / decrement calls * change stats function signatures * rejig logging a bit * use lock when updating stats
This commit is contained in:
parent
f79d50b9b2
commit
3cceed11b2
43 changed files with 1285 additions and 450 deletions
|
|
@ -307,6 +307,12 @@ type CollectionIterator interface {
|
|||
|
||||
NextItem() TypeOrIRI
|
||||
PrevItem() TypeOrIRI
|
||||
|
||||
// TotalItems returns the total items
|
||||
// present in the collection, derived
|
||||
// from the totalItems property, or -1
|
||||
// if totalItems not present / readable.
|
||||
TotalItems() int
|
||||
}
|
||||
|
||||
// CollectionPageIterator represents the minimum interface for interacting with a wrapped
|
||||
|
|
@ -319,6 +325,12 @@ type CollectionPageIterator interface {
|
|||
|
||||
NextItem() TypeOrIRI
|
||||
PrevItem() TypeOrIRI
|
||||
|
||||
// TotalItems returns the total items
|
||||
// present in the collection, derived
|
||||
// from the totalItems property, or -1
|
||||
// if totalItems not present / readable.
|
||||
TotalItems() int
|
||||
}
|
||||
|
||||
// Flaggable represents the minimum interface for an activitystreams 'Flag' activity.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue