feat: update components and hooks to use get_untracked for improved performance
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user