mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Refactored GetTruncatedSwitchList to:
- Only fetch switches in the requested range
- Fetch switch members in bulk rather than one switch at a time
This uses a new GetSwitchMembersList method that requires the following indexes:
CREATE INDEX ix_switches_system
ON public.switches USING btree
(system ASC NULLS LAST)
INCLUDE("timestamp")
TABLESPACE pg_default;
CREATE INDEX ix_switch_members_switch
ON public.switch_members USING btree
(switch ASC NULLS LAST)
INCLUDE(member)
TABLESPACE pg_default;
|
||
|---|---|---|
| .. | ||
| CoreConfig.cs | ||
| CoreMetrics.cs | ||
| DataFiles.cs | ||
| db_schema.sql | ||
| Limits.cs | ||
| Models.cs | ||
| PluralKit.Core.csproj | ||
| Schema.cs | ||
| Stores.cs | ||
| TaskUtils.cs | ||
| Utils.cs | ||