gotosocial/internal/db/bundb
kim a8e6bdfa33
[performance] cache media attachments (#1525)
* replace concurrency worker pools with base models in State.Workers, update code and tests accordingly

* add media attachment caching, slightly tweak default cache config

* further tweak default cache config values

* replace other media attachment db calls to go through cache

* update envparsing test

* fix delete media attachment sql

* fix media sql query

* invalidate cached media entries during status create / update

* fix envparsing test

* fix typo in panic log message...

* add 'updated_at' column during UpdateAttachment

* remove unused func

---------

Signed-off-by: kim <grufwub@gmail.com>
2023-03-03 23:02:23 +00:00
..
migrations [feature] Advertise rich text formats, support content_type field (#1370) 2023-03-02 12:06:40 +01:00
account_test.go [feature] Client API endpoints + v. basic web view for pinned posts (#1547) 2023-02-25 12:16:30 +00:00
account.go [feature] Client API endpoints + v. basic web view for pinned posts (#1547) 2023-02-25 12:16:30 +00:00
admin_test.go [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00
admin.go [feature] Federate pinned posts (aka featuredCollection) in and out (#1560) 2023-03-01 17:52:44 +00:00
basic_test.go [feature] Advertise rich text formats, support content_type field (#1370) 2023-03-02 12:06:40 +01:00
basic.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
bundb_test.go [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00
bundb.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
bundbnew_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
conn.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
domain_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
domain.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
emoji_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
emoji.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
errors.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
hook.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
instance_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
instance.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
media_test.go [chore/performance] Update media prune logic, add extra CLI command (#1474) 2023-02-11 12:48:38 +01:00
media.go [performance] cache media attachments (#1525) 2023-03-03 23:02:23 +00:00
mention_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
mention.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
notification_test.go [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
notification.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
relationship_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
relationship.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
report_test.go [feature] Implement /api/v1/reports endpoints on client API (#1330) 2023-01-23 13:14:21 +01:00
report.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
session_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
session.go [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
status_test.go [bugfix] add ON CONFLICT statements to status updates (#1580) 2023-03-02 16:58:23 +01:00
status.go [performance] cache media attachments (#1525) 2023-03-03 23:02:23 +00:00
timeline_test.go [feature] Client API endpoints + v. basic web view for pinned posts (#1547) 2023-02-25 12:16:30 +00:00
timeline.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
tombstone.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
user_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
user.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
util.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00