Re: ByteA column retrieved in 31 minutes ...

From: Andrea Ricci <andrea(dot)ricci(at)dedalus(dot)eu>
To: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: ByteA column retrieved in 31 minutes ...
Date: 2012-07-18 12:44:01
Message-ID: 5006AF91.5010507@dedalus.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc


Thanks !

I have both the logs up, for testing purpose, and removing mylog force the time of retrieval to be normal (1 sec)

Andrea

Il 07/17/2012 23.11, Hiroshi Inoue ha scritto:

Hi Andrea,

(2012/07/17 23:46), Andrea Ricci wrote:


Hi,

I'm using a 9.0.2 db in a PowerBuilder 12.1 application, connecting to

it via ODBC driver 09.00.0200.

I have a table with a bytea column:

CREATE TABLE docs

(

blobid character(7) NOT NULL,

descript character varying(40),

data date,

"lock" character(1),

ora character(5),

parita character(1),

tipo character(3),

dbvtesto bytea,

CONSTRAINT docs_pkey PRIMARY KEY (blobid),

CONSTRAINT fk1_docs FOREIGN KEY (blobid)

REFERENCES blob (blobid) MATCH SIMPLE

ON UPDATE NO ACTION ON DELETE CASCADE

)

WITH (

OIDS=FALSE

);

When I retrieve via embedded SQL the dbvtesto column (using PK obv.) I

get it in few seconds if its length is about 10 KB, but I've to wait 31

minutes (!) if it's about 1 MB.

If someone has a proposal ...

Mylog is a performance killer for this kind of query.

How about disabling Mylog?

regards,

Hiroshi Inoue

--



/*<![CDATA[*/
<!--
.Stile1 {
color: #888888;
font-weight: bold;
font-family: Gill Sans Std;
}
.Stile2 {
color: #CCCCCC;
font-weight: bold;
font-size: 11px;
font-family: Gill Sans Std;
}
.Stile3 {
color: #777777;
font-weight: bold;
font-size: 13px;
font-family: Gill Sans Std;
}
.Stile4 {
color: #888888;
font-size: 11px;
font-family: Calibri;
}
.Stile5 {
color: #000000;
font-weight: bold;
font-size: 16px;
font-family: Gill Sans Std;
}
.Stile6 {color: #FF0000}
-->
/*]]>*/


Andrea Ricci

Product Manager



Via di Collodi, 6/C 50141 Firenze(Italy)

tel. +39 055 4247.4661

mail andrea(dot)ricci(at)dedalus(dot)eu

___________________________________________________________________________________________________________

Le informazioni contenute nella presente comunicazione ed i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone o alle Società in indirizzo. La diffusione, comunicazione, distribuzione e/o copiatura delle informazioni/documenti trasmesse da parte di qualsiasi soggetto diverso dal destinatario o non autorizzato è proibita, sia ai sensi dell'art. 616 C.P., sia ai sensi del D. lgs. 196/2003. Se avete ricevuto questo messaggio per errore, Vi preghiamo di distruggerlo e di informarci immediatamente per telefono allo 055.42471 o inviando un messaggio all'indirizzo e- mail ( andrea(dot)ricci(at)dedalus(dot)eu). Si fa, inoltre, presente che l'indirizzo di posta elettronica da cui è stata inviata la presente comunicazione è Aziendale e non personale, qualsiasi comunicazione ivi inviata può essere quindi letta anche da incaricati aziendali diversi dal suo utilizzatore principale.

Attachment Content-Type Size
andrea_ricci.vcf text/x-vcard 220 bytes

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message william.ford 2012-07-18 15:29:32 question re org.postgresql.util.PSQLException
Previous Message Hiroshi Inoue 2012-07-17 21:11:51 Re: ByteA column retrieved in 31 minutes ...