merge: Rework queries and add indexes to improve timeline performance (!1091)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1091

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
Hazelnoot 2025-06-04 12:40:13 +00:00
commit dae544b353
33 changed files with 743 additions and 548 deletions

View file

@ -4281,6 +4281,7 @@ export type components = {
iconUrl: string | null;
faviconUrl: string | null;
themeColor: string | null;
isSilenced: boolean;
};
emojis: {
[key: string]: string;
@ -27232,12 +27233,6 @@ export type operations = {
untilDate?: number;
/** @default false */
allowPartial?: boolean;
/** @default true */
includeMyRenotes?: boolean;
/** @default true */
includeRenotedMyNotes?: boolean;
/** @default true */
includeLocalRenotes?: boolean;
/** @default false */
withFiles?: boolean;
/** @default true */
@ -28653,12 +28648,6 @@ export type operations = {
untilDate?: number;
/** @default false */
allowPartial?: boolean;
/** @default true */
includeMyRenotes?: boolean;
/** @default true */
includeRenotedMyNotes?: boolean;
/** @default true */
includeLocalRenotes?: boolean;
/** @default false */
withFiles?: boolean;
/** @default true */
@ -28860,12 +28849,6 @@ export type operations = {
/** @default false */
allowPartial?: boolean;
/** @default true */
includeMyRenotes?: boolean;
/** @default true */
includeRenotedMyNotes?: boolean;
/** @default true */
includeLocalRenotes?: boolean;
/** @default true */
withRenotes?: boolean;
/**
* @description Only show notes that have attached files.