gotosocial/internal/db/bundb
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
..
migrations [feature] Allow newly uploaded emojis to be placed in categories (#939) 2022-11-14 22:47:27 +00:00
account_test.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
account.go [performance] replace account emojis relational query with separate calls to emojiDB to rely on cache (#1074) 2022-11-18 18:29:25 +01:00
admin_test.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
admin.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
basic_test.go [chore] Update bun / sqlite versions; update gtsmodels (#754) 2022-08-15 11:35:05 +01:00
basic.go [chore] Standardize database queries, use bun.Ident() properly (#886) 2022-10-08 13:50:48 +02:00
bundb_test.go [feature] Add emoji DELETE handler at /api/v1/admin/custom_emojis (#913) 2022-10-14 17:30:04 +02:00
bundb.go [performance] add account block DB cache and remove block query joins (#1085) 2022-11-20 16:33:49 +00:00
bundbnew_test.go [bugfix] Make accounts media_only query also work with pg (#643) 2022-06-10 10:56:49 +02:00
conn.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
domain_test.go [bugfix] Fix new domain block date (#893) 2022-10-06 12:48:17 +02:00
domain.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
emoji_test.go [feature] Allow newly uploaded emojis to be placed in categories (#939) 2022-11-14 22:47:27 +00:00
emoji.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
errors.go [feature] Fetch + display custom emoji in statuses from remote instances (#807) 2022-09-12 13:03:23 +02:00
hook.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
instance_test.go [chore] Standardize database queries, use bun.Ident() properly (#886) 2022-10-08 13:50:48 +02:00
instance.go [chore] Standardize database queries, use bun.Ident() properly (#886) 2022-10-08 13:50:48 +02:00
media_test.go [feature] Cleanup unattached local media (#680) 2022-06-30 12:22:10 +02:00
media.go [chore] Standardize database queries, use bun.Ident() properly (#886) 2022-10-08 13:50:48 +02:00
mention_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
mention.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
notification_test.go [performance] don't use relations to select notification structs, use caches instead (#1072) 2022-11-18 17:23:14 +01:00
notification.go [performance] don't use relations to select notification structs, use caches instead (#1072) 2022-11-18 17:23:14 +01:00
relationship_test.go [performance] add account block DB cache and remove block query joins (#1085) 2022-11-20 16:33:49 +00:00
relationship.go [performance] add account block DB cache and remove block query joins (#1085) 2022-11-20 16:33:49 +00:00
session_test.go [chore] Standardize database queries, use bun.Ident() properly (#886) 2022-10-08 13:50:48 +02:00
session.go [chore] Standardize database queries, use bun.Ident() properly (#886) 2022-10-08 13:50:48 +02:00
status_test.go [chore] Standardize database queries, use bun.Ident() properly (#886) 2022-10-08 13:50:48 +02:00
status.go [performance] replace status query relationals with separate calls in order to rely on caches more (#1073) 2022-11-18 18:28:33 +01:00
timeline_test.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
timeline.go [feature] add instance-expose-public-timeline flag (#1039) 2022-11-14 10:30:01 +01:00
tombstone.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
user_test.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
user.go [chore] reversion: use specific columns for updating user again (#1059) 2022-11-16 11:27:08 +01:00
util.go [chore] Standardize database queries, use bun.Ident() properly (#886) 2022-10-08 13:50:48 +02:00