pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: Stephen Frost <sfrost@snowman.net>
Cc: Corin <wakathane@gmail.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: mysql to postgresql, performance questions
Date: Thu, 18 Mar 2010 16:23:09 +0100
Message-ID: <9837222c1003180823q4f68ffc1u51e7ec58d80c431f@mail.gmail.com> (raw)
In-Reply-To: <20100318150900.GO21875@tamriel.snowman.net>
References: <4BA23936.2030507@gmail.com>
	<20100318150900.GO21875@tamriel.snowman.net>

On Thu, Mar 18, 2010 at 16:09, Stephen Frost <sfrost@snowman.net> wrote:
> Corin,
>
> * Corin (wakathane@gmail.com) wrote:
>> {"QUERY PLAN"=>"Total runtime: 5.847 ms"}
>
> This runtime is the amount of time it took for the backend to run the
> query.
>
>> 44.173002243042
>
> These times are including all the time required to get the data back to
> the client.  If you don't use cursors, all data from the query is
> returned all at once.  Can you post the script you're using along with
> the table schema and maybe some sample or example data?  Also, are you
> doing this all inside a single transaction, or are you creating a new
> transaction for every query?  I trust you're not reconnecting to the
> database for every query..

Just as a note here, since the OP is using Debian. If you are
connecting over TCP, debian will by default to SSL on your connection
which obviously adds a *lot* of overhead. If you're not actively using
it (in which case you will control this from pg_hba.conf), just edit
postgresql.conf and disable SSL, then restart the server.


-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/



view thread (44+ messages)  latest in thread

Message-ID: <9837222c1003180823q4f68ffc1u51e7ec58d80c431f@mail.gmail.com>
Permalink:  ../9837222c1003180823q4f68ffc1u51e7ec58d80c431f@mail.gmail.com/
Also on:    postgresql.org/message-id/9837222c1003180823q4f68ffc1u51e7ec58d80c431f@mail.gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: magnus@hagander.net, sfrost@snowman.net, wakathane@gmail.com
  Subject: Re: mysql to postgresql, performance questions
  In-Reply-To: <9837222c1003180823q4f68ffc1u51e7ec58d80c431f@mail.gmail.com>
  References: <4BA23936.2030507@gmail.com> <20100318150900.GO21875@tamriel.snowman.net> <9837222c1003180823q4f68ffc1u51e7ec58d80c431f@mail.gmail.com>

* 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