From 3b136c44f41dfd6459ea9782b46e54d52520e0b1 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Tue, 9 Jul 2024 21:43:19 +1000 Subject: [PATCH] fix: timing loggings --- apps/registry/pages/api/resumes.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/registry/pages/api/resumes.js b/apps/registry/pages/api/resumes.js index db76bb3f..1ff07936 100644 --- a/apps/registry/pages/api/resumes.js +++ b/apps/registry/pages/api/resumes.js @@ -8,12 +8,10 @@ const supabase = createClient(supabaseUrl, supabaseKey); const gravatar = require('gravatar'); export default async function handler(req, res) { - const { limit } = req.query; + // const { limit } = req.query; console.time('getResumes'); - const { data } = await supabase - .from('resumes') - .select() - .limit(limit || 3000); + const { data } = await supabase.from('resumes').select().limit(300); + // .limit(limit || 3000); // .order('created_at', { ascending: false }); console.timeEnd('getResumes');