pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ferdinand Smit <ferdinand@telegraafnet.nl>
To: pgsql-admin@postgresql.org
Subject: Postgres network preformance
Date: Fri, 7 Jun 2002 14:20:46 +0200
Message-ID: <200206071420.46460.ferdinand@telegraafnet.nl> (raw)

Hi,

Does anyone have any tips to improve the network preformance op Postgres ?

To test the preformance i've done a little test using the perlmodule DBI.
The ping last 1 ms and the computers are identical.

The test script:

#!/usr/bin/perl
use DBI;

my $connectTo = "dbi:Pg:dbname=testdb;host=obelix.telegraaf.net";
my $dbh = DBI->connect($connectTo,undef,undef,undef) or die("$DBI::errstr 
($connectTo)");
my $sth = $dbh->prepare("SELECT ?") or die $DBI::errstr;

for ($T=0; $T<10000; $T++) {
  $sth->execute($T);
  $sth->finish;
}
$dbh->disconnect();


The 'time' results:
- Running local:
real    0m2.770s
user    0m0.490s
sys     0m0.250s
- Via network:
real    0m39.919s
user    0m0.470s
sys     0m0.190s




view thread (2+ messages)  latest in thread

Message-ID: <200206071420.46460.ferdinand@telegraafnet.nl>
Permalink:  ../200206071420.46460.ferdinand@telegraafnet.nl/
Also on:    postgresql.org/message-id/200206071420.46460.ferdinand@telegraafnet.nl

 · 

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-admin@postgresql.org
  Cc: ferdinand@telegraafnet.nl
  Subject: Re: Postgres network preformance
  In-Reply-To: <200206071420.46460.ferdinand@telegraafnet.nl>
  References: <200206071420.46460.ferdinand@telegraafnet.nl>

* 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