pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe <svn@freedomcircle.net>
To: PFC <lists@boutiquenumerique.com>
Cc: Gavin Sherry <swm@alcove.com.au>
Cc: Magnus Hagander <mha@sollentuna.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Comparative performance
Date: Thu, 29 Sep 2005 16:50:54 -0400
Message-ID: <433C53AE.4090808@freedomcircle.net> (raw)
In-Reply-To: <op.sxvguropth1vuj@localhost>
References: <6BCB9D8A16AC4241919521715F4D8BCE92E6D6@algol.sollentuna.se>
	<433BDB0B.8010002@freedomcircle.net>
	<Pine.LNX.4.58.0509292230310.26600@linuxworld.com.au>
	<433BE1A0.5000807@freedomcircle.net>
	<op.sxvguropth1vuj@localhost>

PFC wrote:
>     Even though this query isn't that optimized, it's still only 16  
> milliseconds.
>     Why does it take this long for PHP to get the results ?
> 
>     Can you try pg_query'ing this exact same query, FROM PHP, and timing 
> it  with getmicrotime() ?

Thanks, that's what I was looking for.  It's microtime(), BTW.  It'll take me 
some time to instrument it, but that way I can pinpoint what is really slow.

>     You can even do an EXPLAIN ANALYZE from pg_query and display the 
> results  in your webpage, to check how long the query takes on the server.
> 
>     You can also try it on a Linux box.

My current host only supports MySQL.  I contacted hub.org to see if they could 
assist in this transition but I haven't heard back.

>     This smells like a TCP communication problem.

I'm puzzled by that remark.  How much does TCP get into the picture in a local 
Windows client/server environment?

Joe




view thread (25+ messages)  latest in thread

Message-ID: <433C53AE.4090808@freedomcircle.net>
Permalink:  ../433C53AE.4090808@freedomcircle.net/
Also on:    postgresql.org/message-id/433C53AE.4090808@freedomcircle.net

 · 

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: svn@freedomcircle.net, lists@boutiquenumerique.com, swm@alcove.com.au, mha@sollentuna.net
  Subject: Re: Comparative performance
  In-Reply-To: <433C53AE.4090808@freedomcircle.net>

* 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