pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
linked tables in MS Access
7+ messages / 5 participants
[nested] [flat]

* linked tables in MS Access
@ 2007-01-23 09:10 Jiří Nouza <nouza@seznam.cz>
  2007-01-23 09:25 ` Re: linked tables in MS Access Hiroshi Inoue <inoue@tpf.co.jp>
  2007-01-23 09:26 ` Re: linked tables in MS Access Ludek Finstrle <luf@pzkagis.cz>
  2007-01-23 09:32 ` Re: linked tables in MS Access Philippe Lang <philippe.lang@attiksystem.ch>
  0 siblings, 3 replies; 7+ messages in thread

From: Jiří Nouza @ 2007-01-23 09:10 UTC (permalink / raw)
  To: pgsql-odbc

Hello,

I've read a post [1] about how MS Access is enjoyable and efficient when tables are connected to MS SQL.

But I have MS Access front end containing linked tables to Postgres via ODBC. And I'm struggling with slow performance. When I want to open a table which contains about 8000 records it takes more then 20 sec. When I want to move cursor at the last record it takes more than 60 extra seconds.
I'm not able to bind comboboxes directly to larger (more than 60 records) linked table because unrolling takes 20 sec.
All tables has defined primary key, of course.
I was trying to change indexes without any result.

I've already checked Postgres server log and MS Access queries are executed quickly (<500 ms).

Is this normal behavior? Does MS Access cooperates with MS SQL such better than with other DBMS via odbc?

Does anybody have better experience?

I was trying to communicate from ASP.NET with Postgres via OLE DB driver and it was without any performance problems.

Thank you

Jirka

[1] 
http://www.utteraccess.com/forums/showflat.php?Cat=&Board=53&Number=1321886&Zf=&Zw=o...



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: linked tables in MS Access
  2007-01-23 09:10 linked tables in MS Access Jiří Nouza <nouza@seznam.cz>
@ 2007-01-23 09:25 ` Hiroshi Inoue <inoue@tpf.co.jp>
  2 siblings, 0 replies; 7+ messages in thread

From: Hiroshi Inoue @ 2007-01-23 09:25 UTC (permalink / raw)
  To: Jiří Nouza <nouza@seznam.cz>; +Cc: pgsql-odbc

Jiří Nouza wrote:

 > Hello,
> I've read a post [1] about how MS Access is enjoyable and efficient when tables are connected to MS SQL.
>
> But I have MS Access front end containing linked tables to Postgres via ODBC. And I'm struggling with slow performance. When I want to open a table which contains about 8000 records it takes more then 20 sec. When I want to move cursor at the last record it takes more than 60 extra seconds.
> I'm not able to bind comboboxes directly to larger (more than 60 records) linked table because unrolling takes 20 sec

Aren't you turning on ODBC trace ?

regards,
Hiroshi Inoue





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: linked tables in MS Access
  2007-01-23 09:10 linked tables in MS Access Jiří Nouza <nouza@seznam.cz>
@ 2007-01-23 09:26 ` Ludek Finstrle <luf@pzkagis.cz>
  2007-01-23 10:21   `  Re: [ODBC] linked tables in MS Access Jiří Nouza <nouza@seznam.cz>
  2 siblings, 1 reply; 7+ messages in thread

From: Ludek Finstrle @ 2007-01-23 09:26 UTC (permalink / raw)
  To: Jiří Nouza <nouza@seznam.cz>; +Cc: pgsql-odbc

> But I have MS Access front end containing linked tables to Postgres
> via ODBC. And I'm struggling with slow performance. When I want to
> open a table which contains about 8000 records it takes more then
> 20 sec. When I want to move cursor at the last record it takes more
> than 60 extra seconds.
> 
> I've already checked Postgres server log and MS Access queries are
> executed quickly (<500 ms).
> 
> Is this normal behavior? Does MS Access cooperates with MS SQL such
> better than with other DBMS via odbc?

I see no description of your configuration.
What's your ODBC settings? What ODBC driver do you use? What OS?
I hope you haven't enabled the mylog output.
How long takes it the psql to show 8000 records?

BTW let's try play with "use declare/fetch" and "cache size" at first.
And mylog output could help you to see where's the problem.

Regards,

Luf



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

*  Re: [ODBC] linked tables in MS Access
  2007-01-23 09:10 linked tables in MS Access Jiří Nouza <nouza@seznam.cz>
  2007-01-23 09:26 ` Re: linked tables in MS Access Ludek Finstrle <luf@pzkagis.cz>
@ 2007-01-23 10:21   ` Jiří Nouza <nouza@seznam.cz>
  2007-01-23 10:48     ` Re: Re: [ODBC] linked tables in MS Access Ludek Finstrle <luf@pzkagis.cz>
  0 siblings, 1 reply; 7+ messages in thread

From: Jiří Nouza @ 2007-01-23 10:21 UTC (permalink / raw)
  To: pgsql-odbc

Oh, I'm still feeling like a BFU :(

I'm using the last one version of odbc driver (08_02_0200) on Windows XP, 2000. Access is 2000 and 2003.

Of course I had commlog and mylog turned on. But I've never thought that writing some kb (ok, few megabytes) of text could have such big affect :( 
When I was trying common windows odbc trace the disk worked very hard but postgres log didn't make full use of hard disk.

It seems that turning off helps very well. Access work  by now commonly fast.

8000 rows query is prosessed in 0.8 s, see log:
2007-01-23 00:01:42 odbcuser SELECT LOG:  00000: duration: 813.000 ms  statement: select * from osoby
It could be adequate I suppose. Postgres is on laptop.

I will try to change "use declare/fetch" and "cache size" but it is hard to debug via mylog because it is unbelievable slow.

And try to convert Access file to 2003 version further.

Thank you very much I haven't to forget to check logging settings.

Jirka

> ------------ Původní zpráva ------------
> Od: Ludek Finstrle <luf@pzkagis.cz>
> Předmět: Re: [ODBC] linked tables in MS Access
> Datum: 23.1.2007 10:26:52
> ----------------------------------------
> > But I have MS Access front end containing linked tables to Postgres
> > via ODBC. And I'm struggling with slow performance. When I want to
> > open a table which contains about 8000 records it takes more then
> > 20 sec. When I want to move cursor at the last record it takes more
> > than 60 extra seconds.
> > 
> > I've already checked Postgres server log and MS Access queries are
> > executed quickly (<500 ms).
> > 
> > Is this normal behavior? Does MS Access cooperates with MS SQL such
> > better than with other DBMS via odbc?
> 
> I see no description of your configuration.
> What's your ODBC settings? What ODBC driver do you use? What OS?
> I hope you haven't enabled the mylog output.
> How long takes it the psql to show 8000 records?
> 
> BTW let's try play with "use declare/fetch" and "cache size" at first.
> And mylog output could help you to see where's the problem.
> 
> Regards,
> 
> Luf



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Re: [ODBC] linked tables in MS Access
  2007-01-23 09:10 linked tables in MS Access Jiří Nouza <nouza@seznam.cz>
  2007-01-23 09:26 ` Re: linked tables in MS Access Ludek Finstrle <luf@pzkagis.cz>
  2007-01-23 10:21   `  Re: [ODBC] linked tables in MS Access Jiří Nouza <nouza@seznam.cz>
@ 2007-01-23 10:48     ` Ludek Finstrle <luf@pzkagis.cz>
  0 siblings, 0 replies; 7+ messages in thread

From: Ludek Finstrle @ 2007-01-23 10:48 UTC (permalink / raw)
  To: Jiří Nouza <nouza@seznam.cz>; +Cc: pgsql-odbc

Tue, Jan 23, 2007 at 11:21:58AM +0100, Jiří Nouza napsal(a):
> Of course I had commlog and mylog turned on. But I've never thought
> that writing some kb (ok, few megabytes) of text could have such big
> affect :(

mylog is very detailed log (all SQL statement all getted values, ...)
and it's called very often in the code.
psqlodbc.log should be ok (there are few informations).

> It seems that turning off helps very well. Access work  by now commonly fast.
> 
> I will try to change "use declare/fetch" and "cache size" but it is
> hard to debug via mylog because it is unbelievable slow.

You don't need it if it's ok now for you. Use declare/fetch convert
SELECT statements to cursor so the result is fetched in "cache size"
blocks. Sometime it helps sometime it kills the performance.

Regards,

Luf

> > ------------ Původní zpráva ------------
> > Od: Ludek Finstrle <luf@pzkagis.cz>
> > Předmět: Re: [ODBC] linked tables in MS Access
> > Datum: 23.1.2007 10:26:52
> > ----------------------------------------
> > > But I have MS Access front end containing linked tables to Postgres
> > > via ODBC. And I'm struggling with slow performance. When I want to
> > > open a table which contains about 8000 records it takes more then
> > > 20 sec. When I want to move cursor at the last record it takes more
> > > than 60 extra seconds.
> > >
> > > I've already checked Postgres server log and MS Access queries are
> > > executed quickly (<500 ms).
> > >
> > > Is this normal behavior? Does MS Access cooperates with MS SQL such
> > > better than with other DBMS via odbc?
> >
> > I see no description of your configuration.
> > What's your ODBC settings? What ODBC driver do you use? What OS?
> > I hope you haven't enabled the mylog output.
> > How long takes it the psql to show 8000 records?
> >
> > BTW let's try play with "use declare/fetch" and "cache size" at first.
> > And mylog output could help you to see where's the problem.
> >
> > Regards,
> >
> > Luf
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
> 
>                http://www.postgresql.org/docs/faq



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: linked tables in MS Access
  2007-01-23 09:10 linked tables in MS Access Jiří Nouza <nouza@seznam.cz>
@ 2007-01-23 09:32 ` Philippe Lang <philippe.lang@attiksystem.ch>
  2007-01-23 09:57   ` Re: linked tables in MS Access Arnaud Lesauvage <thewild@freesurf.fr>
  2 siblings, 1 reply; 7+ messages in thread

From: Philippe Lang @ 2007-01-23 09:32 UTC (permalink / raw)
  To: Jirí Nouza <nouza@seznam.cz>; pgsql-odbc

pgsql-odbc-owner@postgresql.org wrote:

> Hello,
> 
> I've read a post [1] about how MS Access is enjoyable and efficient
> when tables are connected to MS SQL. 
> 
> But I have MS Access front end containing linked tables to Postgres
> via ODBC. And I'm struggling with slow performance. When I want to
> open a table which contains about 8000 records it takes more then 20
> sec. When I want to move cursor at the last record it takes more than
> 60 extra seconds. I'm not able to bind comboboxes directly to larger
> (more than 60 records) linked table because unrolling takes 20 sec.  
> All tables has defined primary key, of course.
> I was trying to change indexes without any result.
> 
> I've already checked Postgres server log and MS Access queries are
> executed quickly (<500 ms). 
> 
> Is this normal behavior? Does MS Access cooperates with MS SQL such
> better than with other DBMS via odbc? 
> 
> Does anybody have better experience?
> 
> I was trying to communicate from ASP.NET with Postgres via OLE DB
> driver and it was without any performance problems. 

Hi,

I'm using MS Access, ODBC and Postgresql in several places, with big tables as well, and I don't have any performance problem.

I have always been using the default driver parameters, and it always worked for me. But maybe you should play with that a little bit. And I think a few performance tuning tips have been discussed in this list in the past.

One thing you have to check, is wether you are using the MS Access 2000 format, under MS Access 2003. There is huge performance loss in this configuration. Convert your database into the 2003 format, and problems will disappear.

Second thing: have you the opportunity to run tcpdump somewhere between the server and the client? You can activate the log of the server, too. This should give you useful "timing" informations.

Cheers,

Philippe



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: linked tables in MS Access
  2007-01-23 09:10 linked tables in MS Access Jiří Nouza <nouza@seznam.cz>
  2007-01-23 09:32 ` Re: linked tables in MS Access Philippe Lang <philippe.lang@attiksystem.ch>
@ 2007-01-23 09:57   ` Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 0 replies; 7+ messages in thread

From: Arnaud Lesauvage @ 2007-01-23 09:57 UTC (permalink / raw)
  To: Philippe Lang <philippe.lang@attiksystem.ch>; +Cc: Jirí Nouza <nouza@seznam.cz>; pgsql-odbc

Philippe Lang a écrit :
> I'm using MS Access, ODBC and Postgresql in several places, with big tables as well, and I don't have any performance problem.
> I have always been using the default driver parameters, and it always worked for me. But maybe you should play with that a little bit. And I think a few performance tuning tips have been discussed in this list in the past.

I also use Access as a FrontEnd to PostgreSQL (we are migrating the backend).
The main problem is that all queries have to be written in PostgreSQL.
When joining linked tables in Access, performance is terrible ! I think I understand why, but some of my power-users would like to be able to create queries in Access and have no knowledge of SQL (so creating them in PostgreSQL is not an option).

> One thing you have to check, is wether you are using the MS Access 2000 format, under MS Access 2003. There is huge performance loss in this configuration. Convert your database into the 2003 format, and problems will disappear.

Good to know !
I might give MSAccess2003 a try then !


--
Arnaud



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2007-01-23 10:48 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-01-23 09:10 linked tables in MS Access Jiří Nouza <nouza@seznam.cz>
2007-01-23 09:25 ` Hiroshi Inoue <inoue@tpf.co.jp>
2007-01-23 09:26 ` Ludek Finstrle <luf@pzkagis.cz>
2007-01-23 10:21   ` Jiří Nouza <nouza@seznam.cz>
2007-01-23 10:48     ` Ludek Finstrle <luf@pzkagis.cz>
2007-01-23 09:32 ` Philippe Lang <philippe.lang@attiksystem.ch>
2007-01-23 09:57   ` Arnaud Lesauvage <thewild@freesurf.fr>

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