gotosocial/internal/processing
kim 996da6e029 [performance] filter model and database table improvements (#4277)
- removes unnecessary fields / columns (created_at, updated_at)
- replaces filter.context_* columns with singular filter.contexts bit field which should save both struct memory and database space
- replaces filter.action string with integer enum type which should save both struct memory and database space
- adds links from filter to filter_* tables with Filter{}.KeywordIDs and Filter{}.StatusIDs fields (this also means we now have those ID slices cached, which reduces some lookups)
- removes account_id fields from filter_* tables, since there's a more direct connection between filter and filter_* tables, and filter.account_id already exists
- refactors a bunch of the filter processor logic to save on code repetition, factor in the above changes, fix a few bugs with missed error returns and bring it more in-line with some of our newer code

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4277
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
2025-06-24 17:24:34 +02:00
..
account [performance] filter model and database table improvements (#4277) 2025-06-24 17:24:34 +02:00
admin [feature] Handle retractions of domain permission subscription entries (#4261) 2025-06-15 12:36:51 +02:00
advancedmigrations [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
application [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
common [performance] filter model and database table improvements (#4277) 2025-06-24 17:24:34 +02:00
conversations [performance] filter model and database table improvements (#4277) 2025-06-24 17:24:34 +02:00
fedi [bugfix] Fix nil ptr dereffing instance acct outbox (#4267) 2025-06-13 14:08:25 +02:00
filters [performance] filter model and database table improvements (#4277) 2025-06-24 17:24:34 +02:00
interactionrequests [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
list [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
markers [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
media [performance] cache mute check results (#4202) 2025-05-31 17:30:57 +02:00
polls [performance] cache mute check results (#4202) 2025-05-31 17:30:57 +02:00
push [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
report [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
search [performance] filter model and database table improvements (#4277) 2025-06-24 17:24:34 +02:00
status [performance] filter model and database table improvements (#4277) 2025-06-24 17:24:34 +02:00
stream [performance] filter model and database table improvements (#4277) 2025-06-24 17:24:34 +02:00
tags [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
timeline [performance] filter model and database table improvements (#4277) 2025-06-24 17:24:34 +02:00
user [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
workers [performance] filter model and database table improvements (#4277) 2025-06-24 17:24:34 +02:00
followrequest_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
instance.go [feature] Allow exposing allows, implement /api/v1/domain_blocks and /api/v1/domain_allows (#4169) 2025-05-20 11:47:40 +02:00
oauth.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
parsemention.go [bugfix] Fix no notification if mention edited into status (#4102) 2025-05-04 09:45:10 +00:00
parsemention_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
preferences.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
preferences_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
processor.go [performance] filter model and database table improvements (#4277) 2025-06-24 17:24:34 +02:00
processor_test.go [performance] cache mute check results (#4202) 2025-05-31 17:30:57 +02:00