Skip to content

Commit

Permalink
fix: timing loggings
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdavis committed Jul 9, 2024
1 parent 36a91d6 commit 3b136c4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/registry/pages/api/resumes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 3b136c4

Please sign in to comment.