gotosocial/internal/processing/status
kim cac9d65029
[performance] convert enum strings to ints (#3558)
* convert statuses.visibility and notifications.notification_type columns from type string -> int for performance / space savings

* fix test trying to compare string to int

* fix instance count query using string literal instead of gtsmodel const type

* ensure a default value is always set

* also migrate the account settings and sin bin status tables

* initialize maps outside loops and place into singular enum mapping creation func

* use int16 for enum types

* update sinbinstatus creation to be from a snapshot at initial creation

* add snapshot of poll type at creation time
2024-11-25 14:48:59 +01:00
..
bookmark.go [feature] do not uncache status / emoji media if attached status is bookmarked (#2956) 2024-06-06 11:44:43 +01:00
bookmark_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
boost.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00
boost_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
context.go [bugfix/frontend] Don't show replies to hidden parents; return 404 if no "main" thread (#3411) 2024-10-09 12:33:53 +02:00
context_test.go [feature/frontend] Better visual separation between "main" thread and "replies" (#3093) 2024-07-12 20:36:03 +02:00
create.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
create_test.go [feature] Use local_only field, deprecate federated field (#3222) 2024-08-22 19:47:10 +02:00
delete.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
fave.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00
get.go [feature/frontend] Better visual separation between "main" thread and "replies" (#3093) 2024-07-12 20:36:03 +02:00
mute.go use pointer for freshness window (#2614) 2024-02-09 14:24:49 +00:00
pin.go [chore] move PopulateAccountStats() nil check often performed into function itself (#3158) 2024-08-02 13:15:11 +01:00
status.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00
status_test.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00
util.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00