Postgresql Linked Server Query very Slow -


i have problem:

making queries on linked server postgresql slow, very, slow, example:

if run in pgadmin query:

select max(oldmedicionid) tl.tlinputtable 

it returns max result in just: 246 msec

but if run on linked server (using sqlserver 2008), create dblink using odbc postgresql, if run this:

select max(oldmedicionid) linkpdatl.pdatl.tl.tlinputtable 

the query give me result in 1 minute or more sometimes...

what problema?, think not postgresql database, dblink slow,

how can improve performance?

identification: there chances aggregation max(x) in odbc method being done @ client side (not @ server side). can cross-checked seeing doubling row-count approximately double query time well.

resolution: if among few corner cases, create view computes on postgres server-side, , odbc pick aggregated value.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -