Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D372A9FB5F3 for ; Wed, 21 Mar 2007 08:54:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 88541-04 for ; Wed, 21 Mar 2007 08:54:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from serveurmail01.codata.be (125.123.146.82.ipv4.evonet.be [82.146.123.125]) by postgresql.org (Postfix) with ESMTP id CC12F9FB5EB for ; Wed, 21 Mar 2007 08:54:16 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by serveurmail01.codata.be (Postfix) with ESMTP id C473D18387EB for ; Wed, 21 Mar 2007 12:54:12 +0100 (CET) X-DSPAM-Result: Innocent X-DSPAM-Processed: Wed Mar 21 12:54:11 2007 X-DSPAM-Confidence: 0.5384 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 46011ce3169651288416053 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at Received: from serveurmail01.codata.be ([127.0.0.1]) by localhost (serveurmail01.codata.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dxEPh9vY0LUe for ; Wed, 21 Mar 2007 12:54:11 +0100 (CET) Received: from [127.0.0.1] (38-179-112-217.fix.adsl.belcenter.be [217.112.179.38]) by serveurmail01.codata.be (Postfix) with ESMTP id BCEA718387B6 for ; Wed, 21 Mar 2007 12:54:10 +0100 (CET) Message-ID: <46011CE2.1000701@laposte.net> Date: Wed, 21 Mar 2007 12:54:10 +0100 From: Arnaud Lesauvage User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Ctrl+F in MsAccess table is very slow Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000726-0, 20/03/2007), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.344 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO, HOT_NASTY X-Spam-Level: X-Archive-Number: 200703/97 X-Sequence-Number: 8775 Hi list ! I have a linked table in Access 2000 (the backend is postregsql 8.2.3). This table is a view with ~30.000 rows. If I try to search a field in this table, it takes a very long time to complete (searching in a varchar field for an exact match). The commlog is quite surprising : Access starts by fetching rows 10 by 10, then 1 by 1 (even though FETCH=100 in my driver options). Do I have to change a setting in my connection string ? Or should I change something on my server ? Thanks a lot for your help ! (below is the start of my commlog) DSN info: DSN='PostgreSQL30W',server='xxxx',port='5432',dbase='xxxx',user='xxxx',passwd='xxxxx' onlyread='0',protocol='7.4',showoid='0',fakeoidindex='0',showsystable='0' conn_settings='',conn_encoding='OTHER' translation_dll='',translation_option='' Global Options: Version='08.02.0200', fetch=100, socket=4096, unknown_sizes=0, max_varchar_size=254, max_longvarchar_size=8190 disable_optimizer=1, ksqo=1, unique_index=1, use_declarefetch=1 text_as_longvarchar=1, unknowns_as_longvarchar=0, bools_as_char=1 NAMEDATALEN=64 extra_systable_prefixes='dd_', conn_settings='' conn_encoding='OTHER' [ PostgreSQL version string = '8.2.3' ] [ PostgreSQL version number = '8.2' ] conn=098CADA0, query='select oid, typbasetype from pg_type where typname = 'lo'' [ fetched 0 rows ] [ Large Object oid = -999 ] [ Client encoding = 'UTF8' (code = 6) ] conn=098CADA0, PGAPI_DriverConnect(out)='DSN=PostgreSQL30W;DATABASE=xxxx;SERVER=xxxx;PORT=5432;UID=xxxx;PWD=xxxxxxxxxxxxxxxx;CA=d;A6=;A7=100;A8=4096;B0=254;B1=8190;BI=0;C2=dd_;CX=1b8d47bb;A1=7.4-1' conn=098CADA0, query='declare "SQL_CUR071D99C0" cursor with hold for SELECT "index","codecontinent","continent","codepays","pays","coderegion","region","codedepartement","departement","codearrondissement","arrondissement","codeuniteurbaine","uniteurbaine","codelocalite","localite","localitemin","localitecodepostal","localitetype","localitepopulation",'#S_C_H#' ,"planfax_x","planfax_y","planfax_scale","web" FROM "geo"."view_localites_compat" WHERE "codelocalite" = 62503 OR "codelocalite" = 60406 OR "codelocalite" = 62834 OR "codelocalite" = 59158 OR "codelocalite" = 59025 OR "codelocalite" = 2524 OR "codelocalite" = 2650 OR "codelocalite" = 2478 OR "codelocalite" = 59324 OR "codelocalite" = 8404' conn=098CADA0, query='fetch 100 in "SQL_CUR071D99C0"' [ fetched 10 rows ] conn=098CADA0, query='close "SQL_CUR071D99C0"' conn=098CADA0, query='RELEASE _per_query_svp_' conn=098CADA0, query='COMMIT' conn=098CADA0, query='declare "SQL_CUR071D99C0" cursor with hold for SELECT "index","codecontinent","continent","codepays","pays","coderegion","region","codedepartement","departement","codearrondissement","arrondissement","codeuniteurbaine","uniteurbaine","codelocalite","localite","localitemin","localitecodepostal","localitetype","localitepopulation",'#S_C_H#' ,"planfax_x","planfax_y","planfax_scale","web" FROM "geo"."view_localites_compat" WHERE "codelocalite" = 89190 OR "codelocalite" = 88271 OR "codelocalite" = 39006 OR "codelocalite" = 58053 OR "codelocalite" = 21361 OR "codelocalite" = 68331 OR "codelocalite" = 75101 OR "codelocalite" = 75102 OR "codelocalite" = 75103 OR "codelocalite" = 75104' conn=098CADA0, query='fetch 100 in "SQL_CUR071D99C0"' [ fetched 10 rows ] conn=098CADA0, query='close "SQL_CUR071D99C0"' conn=098CADA0, query='RELEASE _per_query_svp_' conn=098CADA0, query='COMMIT' conn=098CADA0, query='declare "SQL_CUR071D99C0" cursor with hold for SELECT "index","codecontinent","continent","codepays","pays","coderegion","region","codedepartement","departement","codearrondissement","arrondissement","codeuniteurbaine","uniteurbaine","codelocalite","localite","localitemin","localitecodepostal","localitetype","localitepopulation",'#S_C_H#' ,"planfax_x","planfax_y","planfax_scale","web" FROM "geo"."view_localites_compat" WHERE "codelocalite" = 75105 OR "codelocalite" = 75106 OR "codelocalite" = 75107 OR "codelocalite" = 75108 OR "codelocalite" = 75109 OR "codelocalite" = 75110 OR "codelocalite" = 75111 OR "codelocalite" = 75112 OR "codelocalite" = 75113 OR "codelocalite" = 75114' conn=098CADA0, query='fetch 100 in "SQL_CUR071D99C0"' [ fetched 10 rows ] conn=098CADA0, query='close "SQL_CUR071D99C0"' conn=098CADA0, query='RELEASE _per_query_svp_' conn=098CADA0, query='COMMIT' conn=098CADA0, query='declare "SQL_CUR071D99C0" cursor with hold for SELECT "index","codecontinent","continent","codepays","pays","coderegion","region","codedepartement","departement","codearrondissement","arrondissement","codeuniteurbaine","uniteurbaine","codelocalite","localite","localitemin","localitecodepostal","localitetype","localitepopulation",'#S_C_H#' ,"planfax_x","planfax_y","planfax_scale","web" FROM "geo"."view_localites_compat" WHERE "codelocalite" = 75115 OR "codelocalite" = 75116 OR "codelocalite" = 75117 OR "codelocalite" = 75118 OR "codelocalite" = 75119 OR "codelocalite" = 75120 OR "codelocalite" = 80357 OR "codelocalite" = 60046 OR "codelocalite" = 80219 OR "codelocalite" = 2371' conn=098CADA0, query='fetch 100 in "SQL_CUR071D99C0"' [ fetched 10 rows ] conn=098CADA0, query='close "SQL_CUR071D99C0"' conn=098CADA0, query='RELEASE _per_query_svp_' conn=098CADA0, query='COMMIT' conn=098CADA0, query='declare "SQL_CUR071D99C0" cursor with hold for SELECT "index","codecontinent","continent","codepays","pays","coderegion","region","codedepartement","departement","codearrondissement","arrondissement","codeuniteurbaine","uniteurbaine","codelocalite","localite","localitemin","localitecodepostal","localitetype","localitepopulation",'#S_C_H#' ,"planfax_x","planfax_y","planfax_scale","web" FROM "geo"."view_localites_compat" WHERE "codelocalite" = 62889 OR "codelocalite" = 60300 OR "codelocalite" = 2392 OR "codelocalite" = 62260 OR "codelocalite" = 16211 OR "codelocalite" = 33061 OR "codelocalite" = 31112 OR "codelocalite" = 17355 OR "codelocalite" = 82102 OR "codelocalite" = 12110' conn=098CADA0, query='fetch 100 in "SQL_CUR071D99C0"' [ fetched 10 rows ] conn=098CADA0, query='close "SQL_CUR071D99C0"' conn=098CADA0, query='RELEASE _per_query_svp_' conn=098CADA0, query='COMMIT' conn=098CADA0, query='declare "SQL_CUR071DB260" cursor with hold for SELECT "codataremarque" FROM "geo"."view_localites_compat" WHERE "codelocalite" = 62503' conn=098CADA0, query='fetch 100 in "SQL_CUR071DB260"' [ fetched 1 rows ] conn=098CADA0, query='close "SQL_CUR071DB260"' conn=098CADA0, query='RELEASE _per_query_svp_' conn=098CADA0, query='COMMIT' conn=098CADA0, query='declare "SQL_CUR071DB260" cursor with hold for SELECT "codataremarque" FROM "geo"."view_localites_compat" WHERE "codelocalite" = 60406' conn=098CADA0, query='fetch 100 in "SQL_CUR071DB260"' [ fetched 1 rows ] conn=098CADA0, query='close "SQL_CUR071DB260"' conn=098CADA0, query='RELEASE _per_query_svp_' conn=098CADA0, query='COMMIT' conn=098CADA0, query='declare "SQL_CUR071DB260" cursor with hold for SELECT "codataremarque" FROM "geo"."view_localites_compat" WHERE "codelocalite" = 62834' conn=098CADA0, query='fetch 100 in "SQL_CUR071DB260"' [ fetched 1 rows ] conn=098CADA0, query='close "SQL_CUR071DB260"' conn=098CADA0, query='RELEASE _per_query_svp_' conn=098CADA0, query='COMMIT' conn=098CADA0, query='declare "SQL_CUR071DB260" cursor with hold for SELECT "codataremarque" FROM "geo"."view_localites_compat" WHERE "codelocalite" = 59158' conn=098CADA0, query='fetch 100 in "SQL_CUR071DB260"' etc etc etc ...