|
|
Sponsor |
Re: Performance-problem: msg#00077db.postgresql.odbc
I've had the exact same issue. I also debugged it until I found out exactly what the problem was. I didn't have the time to sit down and fix it, though. When you open a non-readonly cursor, the ODBC performs a select that has the oid and ctid fields added in. This is done to bypass the fact that postgresql has no updateable cursors support. When you try to actually get the information from the query, each line you ask for is another select! The performance hit I get compared to the same query running over SQL Server is 1:10 (sounds familiar?). The solution: If you can afford it - make the query readonly. This will make the ODBC use a regular cursor, and the problem is gone. If you cannot afford it - the driver will need to be fixed. What I thought for a fix - add the oid and ctid as before, but make that a readonly cursor. If and when an update request arrives, do the proper select as usual. Shachar Steve Jorgensen wrote: Are you sure the ODBC driver is the culprit in the problem you are having? Could it be the speed of the query, or the speed of the network over which you are connecting, perhaps? It would help if you describe your issue in more detail. -- Shachar Shemesh Lingnu Open Systems Consulting http://www.lingnu.com/ ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Performance-problem, Steve Jorgensen |
|---|---|
| Next by Date: | Problem with unixODBC, Katherine Goodwin |
| Previous by Thread: | Re: Performance-problem, Steve Jorgensen |
| Next by Thread: | Problem with unixODBC, Katherine Goodwin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|