From 74b6c62436d9ceebaf4242be435387ed51cd5879 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Tue, 9 Jul 2024 21:15:23 +1000 Subject: [PATCH] fix: supabase slowness --- apps/registry/pages/api/resumes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/registry/pages/api/resumes.js b/apps/registry/pages/api/resumes.js index e422b524..ba9dcadd 100644 --- a/apps/registry/pages/api/resumes.js +++ b/apps/registry/pages/api/resumes.js @@ -13,8 +13,8 @@ export default async function handler(req, res) { const { data } = await supabase .from('resumes') .select() - .limit(limit || 500) - .order('created_at', { ascending: false }); + .limit(limit || 3000); + // .order('created_at', { ascending: false }); const resumes = data.map((row) => { const resume = JSON.parse(row.resume);