pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bob Jolliffe <bobjolliffe@gmail.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: How can sort performance be so different
Date: Tue, 29 Jan 2019 13:47:31 -0500
Message-ID: <14004.1548787651@sss.pgh.pa.us> (raw)
In-Reply-To: <CACd=f9feuR3BkZ65Noce_rc2b5R5GYin_9Gd9UaC_rhOBoch5g@mail.gmail.com>
References: <CACd=f9feuR3BkZ65Noce_rc2b5R5GYin_9Gd9UaC_rhOBoch5g@mail.gmail.com>

Bob Jolliffe <bobjolliffe@gmail.com> writes:
> I wonder what can cause such a massive discrepancy in the sort time.

Are you using the same locale (LC_COLLATE) setting on both machines?
Some locales sort way slower than C locale does.  That's not enough
to explain a 1000X discrepancy --- I concur with the other opinions
that there's something wrong with your VPS --- but it might account
for something like 10X of it.

			regards, tom lane




view thread (14+ messages)  latest in thread

Message-ID: <14004.1548787651@sss.pgh.pa.us>
Permalink:  ../14004.1548787651@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14004.1548787651@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bobjolliffe@gmail.com, pgsql-performance@lists.postgresql.org
  Subject: Re: How can sort performance be so different
  In-Reply-To: <14004.1548787651@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox