Обсуждение: Slow Visual Basic application

Поиск
Список
Период
Сортировка

Slow Visual Basic application

От
"Cecilia Alvarez"
Дата:
<div style="background-color:"><div>Hi,</div><div>I have a visual basic application and the access to postgress is very
slow.</div><div>IfI run the query on PGadminII the answer is quite good but if I run the same query from the
applicationit takes a long time (I debugged it). 11seconds .vs. 5 minutes.</div><div>I would like to know if I have a
problemwith 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´llreally apreciate your
help.</div><div>Thanks</div><div>Cecilia</div></div><brclear="all" /><hr />Únete al mayor servicio mundial de correo
electrónico:<a href="http://g.msn.com/8HMJESMX/2755">Haz clic aquí </a> 

Re: Slow Visual Basic application

От
"Patrick Hatcher"
Дата:
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í