Re: mysql to postgresql, performance questions - Mailing list pgsql-performance

From tv@fuzzy.cz
Subject Re: mysql to postgresql, performance questions
Date
Msg-id 57784.193.179.187.70.1268923853.squirrel@sq.gransy.com
Whole thread Raw
In response to mysql to postgresql, performance questions  (Corin <wakathane@gmail.com>)
List pgsql-performance
I guess we need some more details about the test. Is the
connection/disconnection part of each test iteration? And how are the
databases connected (using a socked / localhost / different host)?

Anyway measuring such simple queries will tell you almost nothing about
the general app performance - use the queries that are used in the
application.

> I also wonder why the reported runtime of 5.847 ms is so much different
> to the runtime reported of my scripts (both php and ruby are almost the
> same). What's the best tool to time queries in postgresql? Can this be
> done from pgadmin?

I doubt there's a 'best tool' to time queries, but I'd vote for logging
from the application itself, as it measures the performance from the end
user view-point (and that's what you're interested in). Just put some
simple logging into the database access layer.

regards
Tomas


pgsql-performance by date:

Previous
From: Corin
Date:
Subject: mysql to postgresql, performance questions
Next
From: Kenneth Marshall
Date:
Subject: Re: mysql to postgresql, performance questions