<div>Hi Pierre,</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Oracle stores its own metadata into mdsys.all_sdo_geom_metadata table.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I think Oracle provider uses this table, but I would like to know if it’s true ?</span></p></blockquote>
<div><br></div><div>Yes it does if you tick the checkbox for "Only Look in meta data table", otherwise QGIS will scan the entire database.</div><div>Advantage - It's infinitely faster using the Oracle metadata table.</div>

<div>Disadvantage - you need to keep it up to date; Oracle doesn't do it natively.</div><div><br></div><div>Jonathan</div><br><br><div class="gmail_quote">On 2 July 2013 08:32, PIERRE Sylvain <span dir="ltr"><<a href="mailto:sylvain.pierre@cg67.fr" target="_blank">sylvain.pierre@cg67.fr</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="FR" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi all,<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I’m now going deeper into testing :<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I load some big table (200 000 or 300 000 rows with polygon geomtry) from our coprorate DB.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I compare time loading with same operation in Mapinfo.<u></u><u></u></span></p><p class="MsoNormal">

<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Loading takes little more time than in Mapinfo, but panning zooming are slightly slower with Mapinfo than QGis.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">For the first point Mapinfo uses a metadata table (MAPCATALOG) which stores layer’s bounding box.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Oracle stores its own metadata into mdsys.all_sdo_geom_metadata table.<u></u><u></u></span></p><p class="MsoNormal">

<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I think Oracle provider uses this table, but I would like to know if it’s true ?<u></u><u></u></span></p><p class="MsoNormal">

<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Or is there any other action from Qgis api before loading that makes this difference ?<u></u><u></u></span></p><p class="MsoNormal">

<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>

<div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p><table border="1" cellpadding="0" style="border:none;border-top:solid gray 1.0pt">

<tbody><tr style="min-height:54.95pt"><td width="294" style="width:220.5pt;border:none;padding:1.5pt 1.5pt 1.5pt 1.5pt;min-height:54.95pt"><p class="MsoNormal" style="margin-left:21.3pt"><b><span lang="EN-US" style="font-size:14.0pt;font-family:"Arial","sans-serif";color:#cc0066">→</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1f497d">  </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Sylvain PIERRE</span></b><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#cc0066"><u></u><u></u></span></b></p>

<div class="im"><p class="MsoNormal" style="margin-left:21.3pt"><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#cc0066">         </span><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d">Ingénieur Géographe<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-left:21.3pt"><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d">         Adjoint au chef du service<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:21.3pt">

<span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d">         Direction de l’Agriculture, de l’Espace Rural et de l’Environnement<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:21.3pt">

<span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d">         </span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d">Service Administration Générale<u></u><u></u></span></p>

</div><p class="MsoNormal" style="margin-left:21.3pt;line-height:115%"><span style="font-family:"Arial","sans-serif";color:navy">       </span><b><span style="font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#1f497d">Conseil Général du Bas-Rhin</span></b><b><span style="font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:navy"><u></u><u></u></span></b></p>

</td><td width="167" style="width:125.35pt;border:none;padding:1.4pt 1.4pt 1.4pt 1.4pt;min-height:54.95pt"><p class="MsoNormal" align="center" style="text-align:center;line-height:115%"><a href="http://www.bas-rhin.fr/" target="_blank"><span style="color:navy;text-decoration:none"><img border="0" width="152" height="72" alt="Description : Description : \\dsi7085103\c$\Users\samuel.guigon\Pictures\CG67\logo_CG67+www_coul.jpg"></span></a><span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>

</td></tr><tr style="min-height:54.95pt"><td width="463" colspan="2" style="width:347.35pt;border-top:solid gray 1.0pt;border-left:none;border-bottom:solid gray 1.0pt;border-right:none;padding:1.5pt 1.5pt 1.5pt 1.5pt;min-height:54.95pt">

<p class="MsoNormal" style="line-height:115%"><span style="font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:gray">         </span><span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:gray">Passerelle 67 <br>

</span></p><div class="im">         20 rue Livio / 67000 Strasbourg<br>         Tél : <a href="tel:%2B33%203%2088%2076%2068%2088" value="+33388766888" target="_blank">+33 3 88 76 68 88</a> – mobile :<br>         Fax : 03 88 76 68 71<br>

         Email : <a href="mailto:sylvain.pierre@cg67.fr" target="_blank">sylvain.pierre@cg67.fr</a><u></u><u></u></div><p></p></td></tr></tbody></table><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>

</div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">

<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a>] <b>De la part de</b> PIERRE Sylvain<br>

<b>Envoyé :</b> jeudi 27 juin 2013 11:24<br><b>À :</b> kimaidou; Andreas Neumann<br><b>Cc :</b> qgis-user<br><b>Objet :</b> Re: [Qgis-user] QGIS and Oracle native connection<u></u><u></u></span></p></div></div><div class="im">

<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Yes !<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Unlike Oracle DB manager which, each time you run it, re-scan all schemas, the browse panel scan only one time.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks a lot !<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p></div><table border="1" cellpadding="0" style="border:none;border-top:solid gray 1.0pt">

<tbody><tr style="min-height:54.95pt"><td width="294" style="width:220.5pt;border:none;padding:1.5pt 1.5pt 1.5pt 1.5pt;min-height:54.95pt"><p class="MsoNormal" style="margin-left:21.3pt"><b><span lang="EN-US" style="font-size:14.0pt;font-family:"Arial","sans-serif";color:#cc0066">→</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1f497d">  </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">Sylvain PIERRE</span></b><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#cc0066"><u></u><u></u></span></b></p>

<div class="im"><p class="MsoNormal" style="margin-left:21.3pt"><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#cc0066">         </span><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d">Ingénieur Géographe<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-left:21.3pt"><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d">         Adjoint au chef du service<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:21.3pt">

<span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d">         Direction de l’Agriculture, de l’Espace Rural et de l’Environnement<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:21.3pt">

<span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d">         </span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d">Service Administration Générale<u></u><u></u></span></p>

</div><p class="MsoNormal" style="margin-left:21.3pt;line-height:115%"><span style="font-family:"Arial","sans-serif";color:navy">       </span><b><span style="font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#1f497d">Conseil Général du Bas-Rhin</span></b><b><span style="font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:navy"><u></u><u></u></span></b></p>

</td><td width="167" style="width:125.35pt;border:none;padding:1.4pt 1.4pt 1.4pt 1.4pt;min-height:54.95pt"><p class="MsoNormal" align="center" style="text-align:center;line-height:115%"><a href="http://www.bas-rhin.fr/" target="_blank"><span style="color:navy;text-decoration:none"><img border="0" width="152" height="72" alt="Description : Description : \\dsi7085103\c$\Users\samuel.guigon\Pictures\CG67\logo_CG67+www_coul.jpg"></span></a><span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>

</td></tr><tr style="min-height:54.95pt"><td width="463" colspan="2" style="width:347.35pt;border-top:solid gray 1.0pt;border-left:none;border-bottom:solid gray 1.0pt;border-right:none;padding:1.5pt 1.5pt 1.5pt 1.5pt;min-height:54.95pt">

<p class="MsoNormal" style="line-height:115%"><span style="font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:gray">         </span><span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:gray">Passerelle 67 <br>

</span></p><div class="im">         20 rue Livio / 67000 Strasbourg<br>         Tél : <a href="tel:%2B33%203%2088%2076%2068%2088" value="+33388766888" target="_blank">+33 3 88 76 68 88</a> – mobile :<br>         Fax : 03 88 76 68 71<br>

         Email : <a href="mailto:sylvain.pierre@cg67.fr" target="_blank">sylvain.pierre@cg67.fr</a><u></u><u></u></div><p></p></td></tr></tbody></table><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a>] <b>De la part de</b> kimaidou</span></p>

<div class="im"><br><b>Envoyé :</b> jeudi 27 juin 2013 10:23<br></div><div class="im"><b>À :</b> Andreas Neumann<br><b>Cc :</b> qgis-user<br></div><b>Objet :</b> Re: [Qgis-user] QGIS and Oracle native connection<u></u><u></u><p>

</p><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Hi <br></p><div class="im"><br>A suggestion : have you tried to use the Browser pannel ( in french : Menu Vue > Panneaux > Parcourir) or the DbManager to access the data ? With these 2 tools, you can very quickly navigate through databases, schemas and tables, without the need to wait for QGIS to scan them all.<u></u><u></u></div>

<p></p></div><div><p class="MsoNormal">Regards<u></u><u></u></p></div><div><p class="MsoNormal">Michael<u></u><u></u></p></div></div><div><div class="h5"><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>

<div><p class="MsoNormal">2013/6/26 Andreas Neumann <<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>><u></u><u></u></p><p class="MsoNormal">Hi,<br><br>I think this would be a very useful addition also for other database providers (Postgis, SQL server, etc.)<br>

<br>The problem is that we are in feature freeze now. Only bugfixes allowed at this time. New features (like this two-step scanning will have to wait for QGIS 2.0x or 2.1.<br><br>Andreas<u></u><u></u></p><div><p class="MsoNormal">

<br><br>On Wed, 26 Jun 2013 09:38:38 +0200, PIERRE Sylvain wrote:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">

<div><p class="MsoNormal" style="margin-bottom:12.0pt">Hi everybody,<br><br>I’ve installed Qgis-dev yesterday in order to test Oracle<br>connection.<br><br>I work in a french local government. 95% of our data  are stored into<br>

Oracle.<br><br>So this new connection looks very interesting for us.<br><br>The main things is definitively slowness at scanning DB.<br><br>We have more than 20 schema and users can’t wait that Qgis scans all<br>schemas until they can load their data.<br>

<br>I know you can stop scan BUT if unfortunatly you are interest in the<br>last one schema, you have to wait…<br><br>Is it possible to only list all schema in the UI and only scan data on<br>demand when user select a schema ?<br>

<br>Sylvain<u></u><u></u></p></div><p class="MsoNormal">→  SYLVAIN PIERRE<u></u><u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt"><br><br>         Ingénieur Géographe<br><br>         Adjoint au chef du service<br>

<br>         Direction de l’Agriculture, de l’Espace Rural et<br>de l’Environnement<br><br>         Service Administration Générale<u></u><u></u></p></div><p class="MsoNormal">       CONSEIL GÉNÉRAL DU BAS-RHIN<br><br> [1]<u></u><u></u></p>

<div><p class="MsoNormal"><br><br>         Passerelle 67<br>         20 rue Livio / 67000 Strasbourg<br>         Tél : <a href="tel:%2B33%203%2088%2076%2068%2088" target="_blank">+33 3 88 76 68 88</a> – mobile :<br>         Fax : 03 88 76 68 71<u></u><u></u></p>

</div><p class="MsoNormal">         Email : <a href="mailto:sylvain.pierre@cg67.fr" target="_blank">sylvain.pierre@cg67.fr</a> [2]<br><br>DE : <a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a><br>

[mailto:<a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a>] DE LA PART DE Jonathan<br>Moules<br>ENVOYÉ : mardi 14 mai 2013 18:05<br>À : Jürgen E.; <a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a><br>

OBJET : Re: [Qgis-user] QGIS and Oracle native connection<u></u><u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt"><br><br>Hi Jürgen,<br><br>I've updated to the newest nightly build (1.9.0-19 - yesterday) and<br>

note it has a couple of fixes. Its also faster, in part because its<br>not listing the recycling tables now.<br><br>We have 551 rows in our all_sdo_geom_metadata table - seems we've had<br>a clean-up.<u></u><u></u></p>

<p class="MsoNormal">Can you work out which queries take particularly long (I added some<br>progress messages recently)?<u></u><u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt"><br>I'm now using "only look in meta data table", "use estimated table<br>

metadata" and "only existing geometry types" as my defaults.<br><br>In the bottom left there's something that says "Scanning column ... "<br>and then shows the column. The speed this cycles through tables seems<br>

to vary - it goes blur-fast if I've just done it a minute ago (despite<br>restarting QGIS), so I guess in those cases Oracle caches - it only<br>takes < 5 seconds.<br><br>But if I do it for the first time, some of them take a significant<br>

time, though it doesn't seem to be entirely related to their size (the<br>vast majority of the tables are only in the thousands of rows or<br>smaller - the millions are the exception (probably 5)).<u></u><u></u></p><p class="MsoNormal">

You can "stop" the detection and then pick what's already there.<u></u><u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt"><br>I completely missed the fact that "connect" turns into stop. Even took<br>

me a minute after reading your email to find it.<br><br>Do you have<u></u><u></u></p></div><div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">

<p class="MsoNormal">re isn't any primary key) on<br>the client side.<br><br>Yes and no. Each table has a column with a unique number that is set<u></u><u></u></p></blockquote></div><p class="MsoNormal"> be unique and not-nullable, but its not set as a primary key in<u></u><u></u></p>

<div><p class="MsoNormal"><br>Oracle. MapInfo and ArcSDE use this column as their index (MapInfo<br>because its called MI_PRINX, and ArcSDE because we tell it to when we<br>register the table).<br><br>I don't know how normal this setup is, but the only other thing that's<br>

ever hinted at wanting an explicit primary key is GeoServer, and then<br>only as a "WARN" event in the logs.<br><br>A thought - if it can't find a primary key, how about testing to see<br>if there's a column called MI_PRINX? Anywhere with MapInfo will have<br>

it.<br><br><a href="http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/5c41496d5951a49c852562b5004f3a44/fcb3edc86ce9460b80256ae7004ee597" target="_blank">http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/5c41496d5951a49c852562b5004f3a44/fcb3edc86ce9460b80256ae7004ee597</a><u></u><u></u></p>

</div><p class="MsoNormal">[3]<br><br>Jonathan<br><br>On 14 May 2013 10:31, Jürgen E.  wrote:<u></u><u></u></p><div><div><p class="MsoNormal"><br><br>Hi Jonathan,<br><br>On Mon, 13. May 2013 at 13:06:49 +0100, Jonathan Moules wrote:<u></u><u></u></p>

<p class="MsoNormal">The first and most obvious thing is that it's incredibly slow to<u></u><u></u></p><p class="MsoNormal">list the<u></u><u></u></p><p class="MsoNormal">tables. I don't know how many tables were used in the test setup,<u></u><u></u></p>

<p class="MsoNormal">but we<u></u><u></u></p><p class="MsoNormal">have over a thousand spatial tables ranging from one row to 20<u></u><u></u></p><p class="MsoNormal">million on<u></u><u></u></p><p class="MsoNormal">an Oracle Locator 10g setup that has about 50 concurrent users.<br>

In the best case scenario ("Only look in meta data table" and "Use<br>estimated table metadata" both checked), it still takes a full two<u></u><u></u></p><p class="MsoNormal">minutes<u></u><u></u></p>
<p class="MsoNormal">
to list all of the tables. If I don't have those checkboxes checked<u></u><u></u></p><p class="MsoNormal">it<u></u><u></u></p><p class="MsoNormal">takes much longer (scanning the table that has ~20million features<u></u><u></u></p>

<p class="MsoNormal">alone<u></u><u></u></p><p class="MsoNormal">takes about a minute!).<u></u><u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt"><br>Can you work out which queries take particularly long (I added some<br>

progress<br>messages recently)?<u></u><u></u></p><p class="MsoNormal">Does QGIS need to do all of the checks it does when actually listing<u></u><u></u></p><p class="MsoNormal">the<u></u><u></u></p><p class="MsoNormal">tables?<u></u><u></u></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><br>Well, QGIS needs to know which geometry types are present. And that<br>might take<br>long to determine. It might be possible to do that lazy - ie. on<br>demand<br>(introduce another level to the tree where the types in the geometry<br>

column<br>are.<u></u><u></u></p><p class="MsoNormal">Its also impossible to "add" a table while the list is being<u></u><u></u></p><p class="MsoNormal">generated so<u></u><u></u></p><p class="MsoNormal">the user has to wait until its finished before being able to<u></u><u></u></p>

<p class="MsoNormal" style="margin-bottom:12.0pt">continue.<br><br>You can "stop" the detection and then pick what's already there.<u></u><u></u></p><p class="MsoNormal">Panning. Again, fine with smaller datasets, but the larger ones<u></u><u></u></p>

<p class="MsoNormal">cause<u></u><u></u></p><p class="MsoNormal">issues.<u></u><u></u></p><p class="MsoNormal"><br>Do you have numeric primary keys? Otherwise QGIS must build a map that<br>assigns<br>numeric keys to the primary keys (or ROWID if there isn't any primary<br>

key) on<br>the client side.<br><br>Jürgen<br><br>--<br>Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31<br>Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50<u></u><u></u></p></div></div><p class="MsoNormal">Software Engineer D-26506 Norden <a href="http://www.norbit.de" target="_blank">http://www.norbit.de</a> [5]<u></u><u></u></p>

<div><p class="MsoNormal"><br>committ(ed|ing) to Quantum GIS IRC: jef on FreeNode<br><br>--<br>norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme<br>mbH<br>Rheinstrasse 13, 26506 Norden<br>GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502<br>

<br>_______________________________________________<br>Qgis-user mailing list<u></u><u></u></p></div><p class="MsoNormal"><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a> [6]<br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a> [7]<u></u><u></u></p>

<div><p class="MsoNormal" style="margin-bottom:12.0pt"><br><br>This transmission is intended for the named addressee(s) only and may<br>contain sensitive or protectively marked material up to RESTRICTED and<br>should be handled accordingly. Unless you are the named addressee (or<br>

authorised to receive it for the addressee) you may not copy or use<br>it, or disclose it to anyone else. If you have received this<br>transmission in error please notify the sender immediately. All email<br>traffic sent to or from us, including without limitation all GCSX<br>

traffic, may be subject to recording and/or monitoring in accordance<br>with relevant legislation.<u></u><u></u></p></div><p class="MsoNormal">Links:<br>------<br>[1] <a href="http://www.bas-rhin.fr/" target="_blank">http://www.bas-rhin.fr/</a><br>

[2] mailto:<a href="mailto:sylvain.pierre@cg67.fr" target="_blank">sylvain.pierre@cg67.fr</a><br>[3]<br><br><a href="http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/5c41496d5951a49c852562b5004f3a44/fcb3edc86ce9460b80256ae7004ee597" target="_blank">http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/5c41496d5951a49c852562b5004f3a44/fcb3edc86ce9460b80256ae7004ee597</a><br>

[4] mailto:<a href="mailto:jef@norbit.de" target="_blank">jef@norbit.de</a><br>[5] <a href="http://www.norbit.de" target="_blank">http://www.norbit.de</a><br>[6] mailto:<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>

[7] <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><u></u><u></u></p></blockquote><p class="MsoNormal"><span style="color:#888888"><br><span>-- </span><br>

<span>--</span><br><span>Andreas Neumann</span><br><span>Böschacherstrasse 10A</span><br><span>8624 Grüt (Gossau ZH)</span><br><span>Switzerland</span></span><u></u><u></u></p><div><div><p class="MsoNormal"><br>_______________________________________________<br>

Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><u></u><u></u></p>

</div></div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div><br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br></blockquote></div><br>

<br>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.</span>