gotosocial/internal/typeutils
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
..
astointernal_test.go
astointernal.go [bugfix] Ensure pending_approval set on statuses + status faves (#3415) 2024-10-11 15:21:45 +02:00
converter_test.go [bugfix] Fix incorrect reply shown in interaction request (#3344) 2024-09-24 17:28:46 +00:00
converter.go
csv.go
defaulticons.go [feature] Add image descriptions for default avatar + header; don't allow editing default desc (#3473) 2024-10-21 14:04:50 +02:00
frontendtointernal.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
internal.go
internaltoas_test.go [chore] Don't cc Accept of likes to followers (#3417) 2024-10-11 15:22:05 +02:00
internaltoas.go [performance] minimise log field allocations (#3529) 2024-11-11 15:45:19 +00:00
internaltofrontend_test.go [bugfix] post counters should not include direct messages (#3554) 2024-11-21 11:06:06 +01:00
internaltofrontend.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
internaltorss_test.go
internaltorss.go
util_test.go
util.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00
wrap_test.go
wrap.go