Why Nostr? What is Njump?
2024-06-06 18:59:01

zyd on Nostr: Went from taking 8 hours to import 50 million rows to 45 minutes. Wild. And instead ...

Went from taking 8 hours to import 50 million rows to 45 minutes. Wild. And instead of constantly hitting my disk at 300MB/s the entire time its now ~16MB/s with spikes here and there. Lesson learned: INSERT as many rows as you can rather than a single row insert at a time. Very happy more experienced folks told me I was doing it the slow way, they weren't kidding!

If I parallelize this I bet I can knock it down to 10 minutes or so.
Author Public Key
npub184ejnrlc3p2whr4xpkxk72slwu9pfvtfg0zzv3wvk6963gtz2wnqw7w6ek