feat: update components and hooks to use get_untracked for improved performance

This commit is contained in:
asepharyana
2026-07-04 03:03:36 +07:00
parent 8166023f91
commit 27e929580e
85 changed files with 1703 additions and 1843 deletions
+3 -6
View File
@@ -83,12 +83,9 @@ export const pgMessagesTable = pgTable(
table.created_at,
table.id,
),
guildAiStatusAnalyzedIdx: pgIndex("idx_messages_guild_ai_status_analyzed").on(
table.guild_id,
table.ai_status,
table.ai_analyzed_at,
table.id,
),
guildAiStatusAnalyzedIdx: pgIndex(
"idx_messages_guild_ai_status_analyzed",
).on(table.guild_id, table.ai_status, table.ai_analyzed_at, table.id),
guildCreatedDeletedIdx: pgIndex("idx_messages_guild_created_deleted").on(
table.guild_id,
table.created_at,
+4 -3
View File
@@ -25,9 +25,10 @@ export * from "./pagination.js";
* clear(); // guaranteed to clear the timeout
* }
*/
export function createAbortControllerWithTimeout(
timeoutMs: number,
): { controller: AbortController; clear: () => void } {
export function createAbortControllerWithTimeout(timeoutMs: number): {
controller: AbortController;
clear: () => void;
} {
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
// Unref so the timeout doesn't keep the process alive