gotosocial/internal/federation/federatingdb
kim 5d55e8d920
[performance] add account block DB cache and remove block query joins (#1085)
* add account block DB cache and remove reliance on relational joins

* actually include cache key arguments...

* add a PutBlock() method which also updates the block cache, update tests accordingly

* use `PutBlock` instead of `Put(ctx, block)`

* add + use functions for deleting + invalidating blocks

Signed-off-by: kim <grufwub@gmail.com>
Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
2022-11-20 16:33:49 +00:00
..
accept.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
announce.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
announce_test.go [bugfix] Fix multiple dereferences of boosted status causing media duplication (#589) 2022-05-23 16:40:03 +01:00
create.go [performance] add account block DB cache and remove block query joins (#1085) 2022-11-20 16:33:49 +00:00
create_test.go replace async client API / federator msg processing with worker pools (#497) 2022-04-28 13:23:11 +01:00
db.go [security] transport.Controller{} and transport.Transport{} security and performance improvements (#564) 2022-05-15 11:16:43 +02:00
delete.go [chore] Tidy up status deletion, remove from cache too (#845) 2022-09-21 19:55:52 +02:00
exists.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
federatingdb_test.go [bugfix] Fix multiple dereferences of boosted status causing media duplication (#589) 2022-05-23 16:40:03 +01:00
followers.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
followers_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
following.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
following_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
get.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
inbox.go [feature] Allow delivery to sharedInboxes where possible (#847) 2022-09-23 20:27:35 +01:00
inbox_test.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
liked.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
lock.go [bugfix] Fix possible race condition in federatingdb (#490) 2022-04-28 11:18:27 +02:00
outbox.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
owns.go [performance] use GetAccountByUsernameDomain() for local account lookups to rely on cache (#793) 2022-09-02 11:56:33 +02:00
reject.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
reject_test.go replace async client API / federator msg processing with worker pools (#497) 2022-04-28 13:23:11 +01:00
undo.go [performance] add account block DB cache and remove block query joins (#1085) 2022-11-20 16:33:49 +00:00
update.go [feature] Show + federate emojis in accounts (#837) 2022-09-26 11:56:01 +02:00
util.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00