question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slow metadata query blocking query execution

See original GitHub issue

System 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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LonwoLonwocommented, Nov 8, 2020

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. 2020-11-08 12_57_58-DBeaver 7 2 5 - upsert_test

0reactions
kseniiaguzeevacommented, Nov 11, 2020

verified

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found