Re: Postgresql Sort cost Poor performance?

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: "tank(dot)zhang" <6220104(at)qq(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Postgresql Sort cost Poor performance?
Date: 2019-04-01 10:20:48
Message-ID: 87d0m6uj5u.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

>>>>> "tank" == tank zhang <6220104(at)qq(dot)com> writes:

tank> smtoc | character varying(50) | | |
tank> Sort Key: smtoc

What is the output of SHOW lc_collate;

One of the most common reasons for slow sorting is that you're sorting a
text/varchar field in a locale other than C. The slowdown for using
other locales varies according to the data, the locale, and the
operating system, but 8-20x slowdowns are very common, 50-100x slowdowns
are not unusual, and there have been reports of even worse cases with
unusual script combinations.

--
Andrew (irc:RhodiumToad)

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message tank.zhang 2019-04-01 10:30:09 Re: Postgresql Sort cost Poor performance?
Previous Message Mariel Cherkassky 2019-04-01 10:16:22 Fwd: trying to analyze deadlock