Re: better performance on poorer machine?

From: Vegard Bønes <vegard(dot)bones(at)met(dot)no>
To: Alban Hertroys <haramrae(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: better performance on poorer machine?
Date: 2014-05-14 08:02:50
Message-ID: 1170915134.187788.1400054570432.JavaMail.root@imap1b
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, all.

I found the problem - it was merely a poorly written query, which for some reason was less terrible on my laptop. Looking at http://explain.depesz.com/ helped me solve the issue. Performance is now back to normal.

It seems this was a classic case of pebcak. Thank you for your help and time!

VG

----- Original Message -----
Fra: "Alban Hertroys" <haramrae(at)gmail(dot)com>
Til: "Vegard Bønes" <vegard(dot)bones(at)met(dot)no>
Kopi: pgsql-general(at)postgresql(dot)org
Sendt: 13. mai 2014 17:49:28
Emne: Re: [GENERAL] better performance on poorer machine?

On 13 May 2014 16:48, Vegard Bønes <vegard(dot)bones(at)met(dot)no> wrote:
> I have a database on a test server with queries that perform terribly. Trying to fix this problem, I copied the database (using pg_dump) to my laptop, and reran tests there. The same queries perform perfectly on my laptop.

We can but guess, but... Quite possibly your laptop is not actually a
poorer machine for single uncomplicated queries. If it's cores are
faster than the test servers, than your laptop would out-perform the
server for such queries.

Once you get other users starting to run queries as well, turning the
load into a parallel load, the server will probably turn out faster
again.

--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dorian Hoxha 2014-05-14 09:02:59 Re: Log Data Analytics : Confused about the choice of Database
Previous Message Magnus Hagander 2014-05-14 07:10:25 Re: LDAP authentication not working