Comment

Comment by throwaway143829

TLDR to get better performance, use bulk inserts instead of inserting one row per query. And (unrelated to DB perf) don't use the spread operator in JS for passing function args (the author says not to use the spread operator at all but you don't need to go that far)

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton