Not query geometry types in layer browser?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Not query geometry types in layer browser?

Bryan Hall-2

Classification: DCL-Internal



Is there a way to configure QGIS to not query the geometry types from each registered shape with an Oracle database when opening the layer browser?

 

I ask because the database I am trying to load data from has 1486 registered tables, for which about 100 are external data (csv) tables (much slower to query), and a few dozen are huge collection geometry tables. QGIS currently takes “forever” (more than an hour – I gave up waiting) for the layer browser to query and load all the entries into the list. I really like QGIS in general, but this issue makes it unusable as it is currently.

 

Thanks in advance,

 

Bryan




This email (and attachments if any) is intended only for the use of the individual or entity to which it is addressed, and may contain information that is confidential or privileged and exempt from disclosure under applicable law. If the reader of this email is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and destroy all copies of the email (and attachments if any).

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Not query geometry types in layer browser?

Richard McDonnell
Hi,
If I understand your question correctly.
I have little experience in Oracle DB's, but in PostgreSQL/PostGIS, you can create a Geometry Constraint within your table, which states what geometry is within the table, which speeds up QGIS in reading table lists, when loading them.
A quick search online resulted in

https://docs.oracle.com/database/121/SPATL/constraining-data-geometry-type.htm#SPATL584

Hope this helps!
Regards,

Richard.


On 02/07/2018 14:34, Bryan Hall wrote:

Classification: DCL-Internal



Is there a way to configure QGIS to not query the geometry types from each registered shape with an Oracle database when opening the layer browser?

 

I ask because the database I am trying to load data from has 1486 registered tables, for which about 100 are external data (csv) tables (much slower to query), and a few dozen are huge collection geometry tables. QGIS currently takes “forever” (more than an hour – I gave up waiting) for the layer browser to query and load all the entries into the list. I really like QGIS in general, but this issue makes it unusable as it is currently.

 

Thanks in advance,

 

Bryan




This email (and attachments if any) is intended only for the use of the individual or entity to which it is addressed, and may contain information that is confidential or privileged and exempt from disclosure under applicable law. If the reader of this email is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and destroy all copies of the email (and attachments if any).


_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

--
Richard McDonnell
GIS Specialist PgD GIS AssocSCSI
OPW FRM Data Management
52 Stephens Green, Dublin 2.
TEL: 01 6476543



Email Disclaimer: http://www.opw.ie/en/disclaimer/
_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] Re: Not query geometry types in layer browser?

Bryan Hall-2

Classification: DCL-Internal



Richard,

 

Yes, I understand how to do that, and this is not the issue.

 

The problem I have is that when I open the database connection, the layer/table list polls the database for each and every accessible item. That takes considerable time (I let it finish – the runtime was about an hour and a half).

 

I am asking if there is a configuration setting to disable this lookup (beyond just polling the mdsys.sdo_geom_metadata_table for the schema/table/column names) so that I can just open the browser, select a table, and go on without waiting for it to load metadata about all the other tables into the browser first.

 

Bryan

 

From: Qgis-user [mailto:[hidden email]] On Behalf Of Richard McDonnell
Sent: Monday, July 02, 2018 08:59
To: [hidden email]
Subject: [EXTERNAL] Re: [Qgis-user] Not query geometry types in layer browser?

 

Hi,
If I understand your question correctly.
I have little experience in Oracle DB's, but in PostgreSQL/PostGIS, you can create a Geometry Constraint within your table, which states what geometry is within the table, which speeds up QGIS in reading table lists, when loading them.
A quick search online resulted in

https://docs.oracle.com/database/121/SPATL/constraining-data-geometry-type.htm#SPATL584

Hope this helps!
Regards,

Richard.

On 02/07/2018 14:34, Bryan Hall wrote:

Classification: DCL-Internal

 

Is there a way to configure QGIS to not query the geometry types from each registered shape with an Oracle database when opening the layer browser?

 

I ask because the database I am trying to load data from has 1486 registered tables, for which about 100 are external data (csv) tables (much slower to query), and a few dozen are huge collection geometry tables. QGIS currently takes “forever” (more than an hour – I gave up waiting) for the layer browser to query and load all the entries into the list. I really like QGIS in general, but this issue makes it unusable as it is currently.

 

Thanks in advance,

 

Bryan

 



This email (and attachments if any) is intended only for the use of the individual or entity to which it is addressed, and may contain information that is confidential or privileged and exempt from disclosure under applicable law. If the reader of this email is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and destroy all copies of the email (and attachments if any).



_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

 

--
Richard McDonnell
GIS Specialist PgD GIS AssocSCSI
OPW FRM Data Management
52 Stephens Green, Dublin 2.
TEL: 01 6476543

Image removed by sender.



Email Disclaimer: http://www.opw.ie/en/disclaimer/




This email (and attachments if any) is intended only for the use of the individual or entity to which it is addressed, and may contain information that is confidential or privileged and exempt from disclosure under applicable law. If the reader of this email is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and destroy all copies of the email (and attachments if any).

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] Re: Not query geometry types in layer browser?

Richard McDonnell
Bryan,
I was having a similar issue before, it was due in my case to QGIS looking through the whole table to find what kinds of Geometry were in the table. In my case the addition of Geometry Constraints helped speed things greatly.

The only other way I know, which is quicker for loading Tables (if you have already added them as sources) would be to:

In QGIS 2.1X use the DB Manager, and drag and drop the Layers you want into QGIS, its considerably quicker, also good for adding views!

In QGIS 3.X, you can use the Data Source Manager to add the Layers, Dont use the icons on the Left (thats the same as the method you are having issues with), drill down through the Browser instead, you can add them from there, I find it much quicker. Again its a good method for adding Views.
Hope it helps, Regards,

Richard.

On 02/07/2018 17:03, Bryan Hall wrote:

Classification: DCL-Internal



Richard,

 

Yes, I understand how to do that, and this is not the issue.

 

The problem I have is that when I open the database connection, the layer/table list polls the database for each and every accessible item. That takes considerable time (I let it finish – the runtime was about an hour and a half).

 

I am asking if there is a configuration setting to disable this lookup (beyond just polling the mdsys.sdo_geom_metadata_table for the schema/table/column names) so that I can just open the browser, select a table, and go on without waiting for it to load metadata about all the other tables into the browser first.

 

Bryan

 

From: Qgis-user [[hidden email]] On Behalf Of Richard McDonnell
Sent: Monday, July 02, 2018 08:59
To: [hidden email]
Subject: [EXTERNAL] Re: [Qgis-user] Not query geometry types in layer browser?

 

Hi,
If I understand your question correctly.
I have little experience in Oracle DB's, but in PostgreSQL/PostGIS, you can create a Geometry Constraint within your table, which states what geometry is within the table, which speeds up QGIS in reading table lists, when loading them.
A quick search online resulted in

https://docs.oracle.com/database/121/SPATL/constraining-data-geometry-type.htm#SPATL584

Hope this helps!
Regards,

Richard.

On 02/07/2018 14:34, Bryan Hall wrote:

Classification: DCL-Internal

 

Is there a way to configure QGIS to not query the geometry types from each registered shape with an Oracle database when opening the layer browser?

 

I ask because the database I am trying to load data from has 1486 registered tables, for which about 100 are external data (csv) tables (much slower to query), and a few dozen are huge collection geometry tables. QGIS currently takes “forever” (more than an hour – I gave up waiting) for the layer browser to query and load all the entries into the list. I really like QGIS in general, but this issue makes it unusable as it is currently.

 

Thanks in advance,

 

Bryan

 



This email (and attachments if any) is intended only for the use of the individual or entity to which it is addressed, and may contain information that is confidential or privileged and exempt from disclosure under applicable law. If the reader of this email is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and destroy all copies of the email (and attachments if any).



_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

 

--
Richard McDonnell
GIS Specialist PgD GIS AssocSCSI
OPW FRM Data Management
52 Stephens Green, Dublin 2.
TEL: 01 6476543

Image
                removed by sender.



Email Disclaimer: http://www.opw.ie/en/disclaimer/




This email (and attachments if any) is intended only for the use of the individual or entity to which it is addressed, and may contain information that is confidential or privileged and exempt from disclosure under applicable law. If the reader of this email is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and destroy all copies of the email (and attachments if any).

--
Richard McDonnell
GIS Specialist PgD GIS AssocSCSI
OPW FRM Data Management
52 Stephens Green, Dublin 2.
TEL: 01 6476543

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user