Re: Input and Output data traffic

From: Israel Ben Guilherme Fonseca <israel(dot)bgf(at)gmail(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: Re: Input and Output data traffic
Date: 2011-05-11 17:37:28
Message-ID: BANLkTik8x_r7AsARSCsd+Fxz5Ld=PU0nYQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

With that extra clause on every commit, that could increase the size of the
sent data. JDBC doesn't do it, so maybe it could be the cause, at last for
the sent data not the received data.

But it's too soon to say anything for now, I'll do some tests latter to see
what happens.

2011/5/11 Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>

> On Wed, May 11, 2011 at 01:56:08PM -0300, Israel Ben Guilherme Fonseca
> wrote:
>
> > With the log tips of Oswaldo, I saw that
> >
> > SET TRANSACTION ISOLATION LEVEL READ COMMITTED
> >
> > on every instruction as you said Danielle. JDBC dont have those and it
> use
> > parameters for the statements, psycopg do not (its embedded in the SQL).
> I
> > dont know if this could have some impact.
> >
> > I used the recommended way to avoid SQL Injection by the way.
> >
> > execute("insert into table(col) values(%s)", (10,))
>
> I wonder how any of this is supposed to have any impact on
> the expected up-/down-traffic ratio which was the only thing
> the OP reported to be different between psycopg2 and JDBC
> (if I correctly understood the original post).
>
> Karsten
> --
> GPG key ID E4071346 @ gpg-keyserver.de
> E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
>
> --
> Sent via psycopg mailing list (psycopg(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/psycopg
>

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Karsten Hilbert 2011-05-11 18:40:23 Re: Input and Output data traffic
Previous Message Karsten Hilbert 2011-05-11 17:29:41 Re: Input and Output data traffic