News for hackers. Stuff that matters.
Re:Running Awk in parallel to process 256M records by VHRanger on Tuesday June 02, 2020 @06:16PM (#23397049)
If you're dealing with such a static single-machine dataset, why not go for SQLite instead of PostGres?

There'd be much less setup overhead

Re:Running Awk in parallel to process 256M records by tetha on Tuesday June 02, 2020 @06:36PM (#23397291)
Sqlite is single-writer for a single database. I mean. Of course, VHRanger, only your team will need to write to the database, and your team will make sure that only one person on your team will write to it. Eh. I've been there too many times. Oh, but yes, your team will also figure out the fallout if things to wrong. Ah..

Ok. Maybe those are enterprise concerns: Sqlite doesn't scale regarding multiple users reading and writing. Of course it's a read only dataset, but do you know the bouquet of views and derived tables data scientists create around a read-only dataset? Hah. Oh and of course these are not critical, but if they get lost, shit hits the fan because it takes multiple weeks to rebuild them.

I've been in that swamp enough times to just install postgres and stop caring. Takes me 2 more hours now, but avoids weeks of discussions in the future.

Re:Running Awk in parallel to process 256M records by Volt on Tuesday June 02, 2020 @10:40PM (#23399104)
Remember that we're comparing this to awk…
Re:Running Awk in parallel to process 256M records by twoodfin on Tuesday June 02, 2020 @06:19PM (#23397076)
How good is SQLite’s parallelism these days?
Re:Running Awk in parallel to process 256M records by doteka on Tuesday June 02, 2020 @06:24PM (#23397143)
It’s alright, concurrent reads should not be a problem at least. Most drivers implement some features to make it easier.
Re:Running Awk in parallel to process 256M records by mongol on Tuesday June 02, 2020 @06:19PM (#23397072)
I was thinking the same thing first, but does SQLite parallelize work it does?
Re:Running Awk in parallel to process 256M records by Scarbutt on Tuesday June 02, 2020 @09:47PM (#23398810)
There's no overhead.

  apt-get install postgres
  create user
  create database