Re:Understanding Recursive Queries in PostgreSQL
by koeng on Monday August 17, 2020 @07:05PM
(#24193335)
I have a single physical server for running all my virtual machines. ZFS is nice for everything else, and it just so happens that my database virtual machine takes up most of the SSD space on that computer. I guess I should have a dedicated machine if I really need to improve insert speeds though.
[ Parent
| on HN ]
Re:Understanding Recursive Queries in PostgreSQL
by mulmen on Monday August 17, 2020 @09:44PM
(#24194467)
Ah ok, pragmatic. Makes sense.
Have you done things like disable constraints and indexing during loading?
Re:Understanding Recursive Queries in PostgreSQL
by koeng on Tuesday August 18, 2020 @12:59AM
(#24195425)
I've disabled all constraints, but I haven't removed indexing during loading. I'll look into doing that, with adding the indexing later
Re:Understanding Recursive Queries in PostgreSQL
by mulmen on Tuesday August 18, 2020 @03:39AM
(#24196155)
I don’t often work with Postgres itself but I do work with a derivative (Redshift) at $dayjob.
Indexes don’t exist. Constraints are present in the syntax and the planner relies on them but they are never enforced. Our ETL layer deals with checking constraints at load time. Load performance is good. I’ve never run a rows/minute metric because it’s never been a problem.
Re:Understanding Recursive Queries in PostgreSQL
by mulmen on Wednesday August 19, 2020 @05:22PM
(#24216708)
Coming back to this just to provide a datapoint. I just loaded 10m rows into a table in less than one minute using Redshift. The data is encoded (compressed) at insert time but is not sorted until a vacuum runs.