pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedSlow Visual Basic application
2+ messages / 2 participants
[nested] [flat]
* Slow Visual Basic application
@ 2003-04-10 17:32 Cecilia Alvarez <cecilia_ag@hotmail.com>
2003-04-10 18:52 ` Re: Slow Visual Basic application Patrick Hatcher <PHatcher@macys.com>
0 siblings, 1 reply; 2+ messages in thread
From: Cecilia Alvarez @ 2003-04-10 17:32 UTC (permalink / raw)
To: pgsql-performance
<html><div style='background-color:'><DIV>Hi,</DIV>
<DIV>I have a visual basic application and the access to postgress is very slow.</DIV>
<DIV>If I run the query on PGadminII the answer is quite good but if I run the same query from the application it takes a long time (I debugged it). 11seconds .vs. 5 minutes.</DIV>
<DIV>I would like to know if I have a problem with my connection to postgres or my odbc.</DIV>
<DIV>The string connection is:</DIV>
<DIV> </DIV>
<DIV>gobjBD.StringConexion = "Provider=MSDataShape.1;DRIVER={PostgreSQL};DATABASE=mydatabase;<BR>SERVER=192.9.200.5;PORT=5432;UID=postgres;PWD="</DIV>
<DIV> </DIV>
<DIV>I´ll really apreciate your help.</DIV>
<DIV>Thanks</DIV>
<DIV>Cecilia</DIV></div><br clear=all><hr>Únete al mayor servicio mundial de correo electrónico: <a href="http://g.msn.com/8HMJESMX/2755">Haz clic aquí </a> </html>
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Slow Visual Basic application
2003-04-10 17:32 Slow Visual Basic application Cecilia Alvarez <cecilia_ag@hotmail.com>
@ 2003-04-10 18:52 ` Patrick Hatcher <PHatcher@macys.com>
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Hatcher @ 2003-04-10 18:52 UTC (permalink / raw)
To: cecilia_ag@hotmail.com; +Cc: pgsql-performance; pgsql-performance-owner@postgresql.org
It appears you are trying to create a cube by using MSDataShape. Correct?
This could be the cause of the slow query. Why not use a straight ADO
connection?
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
cn.ConnectionString = "driver={PostgreSQL};server=192.9.200.5;uid=;pwd
=;database=mydatabase"
cn.ConnectionTimeout = 300
cn.CursorLocation = adUseClient
cn.Open
Set rs = cn.Execute("Select * from table1)
"Cecilia Alvarez"
<cecilia_ag@hotmail.com> To: pgsql-performance@postgresql.org
Sent by: cc:
pgsql-performance-owner@post Subject: [PERFORM] Slow Visual Basic application
gresql.org
04/10/2003 10:32 AM
Hi,
I have a visual basic application and the access to postgress is very slow.
If I run the query on PGadminII the answer is quite good but if I run the
same query from the application it takes a long time (I debugged it).
11seconds .vs. 5 minutes.
I would like to know if I have a problem with my connection to postgres or
my odbc.
The string connection is:
gobjBD.StringConexion = "Provider=MSDataShape.1;DRIVER
={PostgreSQL};DATABASE=mydatabase;
SERVER=192.9.200.5;PORT=5432;UID=postgres;PWD="
I´ll really apreciate your help.
Thanks
Cecilia
Únete al mayor servicio mundial de correo electrónico: Haz clic aquí
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-04-10 18:52 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-10 17:32 Slow Visual Basic application Cecilia Alvarez <cecilia_ag@hotmail.com>
2003-04-10 18:52 ` Patrick Hatcher <PHatcher@macys.com>
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