N̶o̶ ̶s̶h̶i̶t̶,̶ ̶S̶h̶e̶r̶l̶o̶c̶k̶!̶ You don't say?
Boosting the performance of PostgreSQL’s COPY command by dropping indexes
11–20 of 49 posts
Re: Boosting the performance of PostgreSQL’s COPY command by dropping indexes
#12Re: Boosting the performance of PostgreSQL’s COPY command by dropping indexes
#13Of course, that's often not an option when you you're loading records into a live database that's also getting queries, you usually don't want every query to result in a full table scan.
This was well known 20+ years ago when I was an entry-level DBA, and I assumed it was still well known today.
Re: Boosting the performance of PostgreSQL’s COPY command by dropping indexes
#14Kids, many years ago, even before jQuery, software would come with documentation that you could read and it would tell you how to use it effectively.
I know, crazy right? But to this day some of that old software, of which PostgreSQL is an example, still has this documentation that you can read, even before you use the software in a production system.
Yeah, yeah, I know Agile and Docker solved the problem of ever having to document anything, but this is the way things used to be and a few of us are stuck in our ways and still like it.
Re: Boosting the performance of PostgreSQL’s COPY command by dropping indexes
#15They should have stuck with bog-standard mySQL to get this time saving for free - if you restore a SQL dump created with phpMyAdmin or mysqldump then all the disable index commands are already in there, good to go, and in SQL. Whoever wrote the Django bit didn't really do a good job on the defaults.
But that's not what they're dealing with. They're dealing with CSV, presumably from some external source. It'd also be faster if they were dealing with pre-formed database files that they could just rsync. But they're not.
Re: Boosting the performance of PostgreSQL’s COPY command by dropping indexes
#16Wow. You've gotta love the audacity in making a big announcement like this based on the developer finally getting around to reading the docs . "Drop constraints and indexes for faster imports" is mass import 101. The entirety of the "Why We Did It" section: ----- > This improvement was pioneered by James Gordon, the Coalition’s lead developer. > He drew instruction from PostgreSQL’s official documentation, which read…
Re: Boosting the performance of PostgreSQL’s COPY command by dropping indexes
#17I must be getting old. Kids, many years ago, even before jQuery, software would come with documentation that you could read and it would tell you how to use it effectively. I know, crazy right? But to this day some of that old software, of which PostgreSQL is an example, still has this documentation that you can read, even before you use the software in a production system. Yeah, yeah, I know Agile and Docker solved…
If you're getting old then I must be ancient! I remember when all the software documentation had to be printed on this white stuff made out of dead trees.
Re: Boosting the performance of PostgreSQL’s COPY command by dropping indexes
#18Wow. You've gotta love the audacity in making a big announcement like this based on the developer finally getting around to reading the docs . "Drop constraints and indexes for faster imports" is mass import 101. The entirety of the "Why We Did It" section: ----- > This improvement was pioneered by James Gordon, the Coalition’s lead developer. > He drew instruction from PostgreSQL’s official documentation, which read…
Re: Boosting the performance of PostgreSQL’s COPY command by dropping indexes
#19Re: Boosting the performance of PostgreSQL’s COPY command by dropping indexes
#20N̶o̶ ̶s̶h̶i̶t̶,̶ ̶S̶h̶e̶r̶l̶o̶c̶k̶!̶ You don't say?
It was a bit abrupt but seriously it is kinda disheartening to read that a _lead_ developer _discovered_ such a basic thing.