Skip to content

Commit

Permalink
smaller batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
catdevnull committed Feb 25, 2025
1 parent a4b7f46 commit a17d09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sitio/src/routes/api/datasets/all-tweets.jsonl/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { RequestHandler } from "@sveltejs/kit";
export const GET: RequestHandler = async () => {
console.time("all-tweets-jsonl");

const BATCH_SIZE = 1000;
const BATCH_SIZE = 100;
let lastId: string | null = null;
let allRecords: (typeof tweets.$inferSelect)[] = [];
// workaround because libsql sucks and returns "LibsqlError: RESPONSE_TOO_LARGE: Response is too large"
Expand Down

0 comments on commit a17d09c

Please sign in to comment.