Unix Technical Forum

[ psqlodbc-Bugs-1000714 ] Driver gets progressively slower Multi-threading retrieval

This is a discussion on [ psqlodbc-Bugs-1000714 ] Driver gets progressively slower Multi-threading retrieval within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> Bugs item #1000714, was opened at 2006-08-24 15:40 You can respond by visiting: http://pgfoundry.org/tracker/?func=d...oup_id=1000125 Category: None Group: None Status: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 03:12 AM
noreply@pgfoundry.org
 
Posts: n/a
Default [ psqlodbc-Bugs-1000714 ] Driver gets progressively slower Multi-threading retrieval

Bugs item #1000714, was opened at 2006-08-24 15:40
You can respond by visiting:
http://pgfoundry.org/tracker/?func=d...oup_id=1000125

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Farid Zidan (faridz)
Assigned to: Nobody (None)
Summary: Driver gets progressively slower Multi-threading retrieval

Initial Comment:
4 or more threads active on the same connection doing sequential data retrieval over data of 300 tables. Some tables have 200k rows. Driver gets progressively slower retrieving large table data until and it appears to go into an infinite loop using 100% cpu and not doing any useful work.

Not able to isolate this issue. But you can reproduce it using CompareData application www.zidsoft.com

Required: one or two databases with over 300 tables with at least 6-8 tables with 200k or more rows.

Add a DBMS comparison for the two datasources in CompareData. Open a Compare Data tab to compare all the data of the two datasources tables and set the max thread count to 6 or 8 threads and then start the comparison. The first few tables data are compared quickly but as the application progesses through the tables and encounters tables with large number of rows, the driver slows down more and more.

If you set the max thread count to 1, then the driver appears to works fine.

This issue does not happen with other DBMS drivers and appear specific to the PostgreSQL ODBC driver. I am using the latest version of the driver psqlodbc35w.dll dated 8/24/06 2:33pm ( an 8.02 bug fix by Hiroshi Inoue ).

Please let me know if you need any help reproducing this issue.

----------------------------------------------------------------------

>Comment By: Farid Zidan (faridz)

Date: 2006-12-01 09:01

Message:
This appears to be a server issue and not a driver issue.
Used the same PostgreSQL driver but with EnterpriseDB server
without exhibiting this issue.

----------------------------------------------------------------------

Comment By: Farid Zidan (faridz)
Date: 2006-08-28 17:35

Message:
Correction. After trying again I found out that the
Updatable Cursors option setting does not matter.

Tested UseDeclareFetch option by setting it on ( Updatable
Cursors unchecked ) and found out that the driver locks up
when I tested using 8 threads.

----------------------------------------------------------------------

Comment By: Hiroshi Inoue (hinoue)
Date: 2006-08-25 19:16

Message:
Hi Farid,

> This issue does not happen if Updatable
> Cursors option is unchecked in Page 2 of
> the driver ODBC datasource advanced options
> tag.


Does CompareData open cursors in READ_ONLY
mode ?
What is the setting of the UseDeclareFetch
option for the Datasource ?

regards,
Hiroshi Inoue

----------------------------------------------------------------------

Comment By: Farid Zidan (faridz)
Date: 2006-08-25 06:09

Message:
This issue does not happen if Updatable Cursors option is
unchecked in Page 2 of the driver ODBC datasource advanced
options tag. Driver not releasing locks on statement handle
after the statement handle is feed? or not efficiently
removing/searching open statement handles?

----------------------------------------------------------------------

You can respond by visiting:
http://pgfoundry.org/tracker/?func=d...oup_id=1000125

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:45 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com