Re: Improve ODBC Throughput ?

Поиск
Список
Период
Сортировка
От greg.campbell@us.michelin.com
Тема Re: Improve ODBC Throughput ?
Дата
Msg-id OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com
обсуждение исходный текст
Ответ на Re: Improve ODBC Throughput ?  (Arnaud Lesauvage <thewild@freesurf.fr>)
Ответы Re: Improve ODBC Throughput ?  (Arnaud Lesauvage <thewild@freesurf.fr>)
Список pgsql-odbc

You say that you have a performance issue.

1. Cache Size
I would guess that the problem may be in how many records you retrieve at a time.
In VBA code with ADO , it is sometimes helpful to use the Recordset CacheSize property to pull more than one row at a time.

2.Declare Fetch
In Access, you do not have this fine control. Some psqlODBC user have experimented with the DECLARE/FETCH option in the psqlODBC settngs.I am not entirely sure how Declare/Fetch works though, I have never used it.

3. General design for performance
I don't know much about your PostgreSQL database and Access setup, but I can imagine a situation where you are trying to open a linked table which has millions of rows and some of the fields are of type TEXT, essentially BLOBs that Access must treat as MEMO. Simply trying to open something like that whole is a pretty bad idea for a transactional application. It is usually best to filter,...retrieve the fewest rows to suit the users need, and to do other transactions explicitly one records at a time on primary keys.

Lastly, you could turn on the ODBC trace or the psqlODBC MyLog to looks for less obvious issues, since you have ruled out the network.

Much Luck to you.

Greg Campbell ENG-ASE/Michelin US5
Lexington, South Carolina
803-951-5561, x75561
Fax: 803-951-5531
greg.campbell@us.michelin.com

Inactive hide details for Arnaud Lesauvage <thewild@freesurf.fr>Arnaud Lesauvage <thewild@freesurf.fr>


          Arnaud Lesauvage <thewild@freesurf.fr>
          Sent by: pgsql-odbc-owner@postgresql.org

          10/19/2006 10:24


To

"Obe, Regina" <robe.dnd@cityofboston.gov>

cc

pgsql-odbc@postgresql.org

Subject

Re: [ODBC] Improve ODBC Throughput ?

Obe, Regina a écrit :
> What kinds of indexes do you have on your tables?  I think the way
> Access works to limit transfer it first pulls the indexes and probably
> the primary one first to determine how to fetch and how many to fetch.
> I suspect if you have no indexes performance would be really bad.
>
> Also which version of psqlODBC driver are you using?

I have integer primary keys on most tables, if not all of them.
Even my views have an integer primary key (at least,
something that can be used as an integer pkey in Access).

My version of psqlODBC is 8.1.2.0.

I forgot to mention something important : I obtain the best
performances (500kB / sec, cf my first post) when I am NOT
in access.
In a VBA module (Autocad, not Access), I open an ADO
connection to PostgreSQL and directly query the server (no
linked table involved here). But still, this is "only"
500kB/sec...



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@postgresql.org so that your
      message can get through to the mailing list cleanly

Вложения

В списке pgsql-odbc по дате отправления:

Предыдущее
От: "Erika Marlow"
Дата:
Сообщение: VB6, ADO returns EOF via ODBC but has records in PSQL
Следующее
От: "Obe, Regina"
Дата:
Сообщение: Re: Improve ODBC Throughput ?