top | item 39765486

(no title)

throwaway143829 | 1 year ago

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)

discuss

order

ak39|1 year ago

Thank you. Also, what database was in use?

throwaway143829|1 year ago

sqlite3, but I think bulk inserts would improve perf for other DBs too.

dopp0|1 year ago

sqlite