Slow metadata query blocking query execution
See original GitHub issueSystem information:
- Kubuntu 18.04
- DBeaver Version 7.2.1.202009201907
Connection specification:
- Oracle 11 - 12
- com.oracle.database.jdbc ojdbc8, 12.2.0.1
When i execute first statement after connect, it takes long time (93s), because there is is metatada query running. But it’s slow only first time. Problem is, that it’s not running on background and it blocks execution of already typed sql statement where a don’t need autocomplete data at this time. An autocomplete popups shows after query is completed.
Metadata query (completes after 93s)
SELECT O.*,
t.TABLE_TYPE_OWNER,t.TABLE_TYPE,t.TABLESPACE_NAME,t.PARTITIONED,t.IOT_TYPE,t.IOT_NAME,t.TEMPORARY,t.SECONDARY,t.NESTED,t.NUM_ROWS
FROM DBA_OBJECTS O
LEFT OUTER JOIN DBA_ALL_TABLES t ON (t.OWNER = O.OWNER AND t.TABLE_NAME = o.OBJECT_NAME)
WHERE O.OWNER='USERNAME' AND O.OBJECT_TYPE IN ('TABLE', 'VIEW', 'MATERIALIZED VIEW')
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
No blocking, good execution plan, slow query - Stack Overflow
Having ruled out blocking and a bad execution plan, What else can make a query slow ? One thing worth pointing out is...
Read more >Reasons Your Query Is Slow Right Now: Blocking, Blocking ...
It's not so helpful for the query doing the blocking, but it'll tell you what the queries being blocked are stuck on. The...
Read more >Can running a query on a readable secondary slow down ...
Someone told me that running queries on a readable secondary in an AG can slow down (or even block) the primary (no matter...
Read more >Database performance is very very slow when I query metadata
Hi, I have installed Oracle 11G R2 recently and Its a oracle Standard edition single instance installation.
Read more >Surface and Optimize Slow Performing Queries With Datadog ...
But databases themselves do not store historical performance metrics, which makes it extremely difficult to identify trends and determine ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So, we added in Oracle Connection Settings in Oracle properties tab new checkbox “Use Union for table metadata reading”. The default value for this option is false. You can activate it to speed up reading the metadata. Your feedback will be very important to us.
verified