Print Thread
SELECT FROM DUAL slow
#57740 03/22/18 04:12 PM
Joined: Jun 2007
Posts: 61
Sheffield
I
Member
OP Offline
Member
I
Joined: Jun 2007
Posts: 61
Sheffield
Hi,
I was debugging some speed issues against some meaty SQL I have, and it seems to come down to selecting from dual but only in a SQL window.

So, I did a quick test and found that doing it through PLSQL Dev's SQL window was very slow, whilst PLSQL Dev's command window, SQLPlus and Oracle SQL Developer was lightning.

Consider the following from SQLPlus.
Code
SQL> select 1 from dual;

         1
----------
         1

Executed in 0.019 seconds

The same in SQL Window executes in around 0.5s consistently.

I've tried the same on other machines at my disposal and it seems consistent.

Is this a known issue or is it something to do with our setup?

Thanks
Matt.

Re: SELECT FROM DUAL slow
IncredibleMrT #57741 03/22/18 04:57 PM
Joined: Jul 2004
Posts: 592
W
Member
Offline
Member
W
Joined: Jul 2004
Posts: 592
Maybe this is related to Preferences->Oracle->Options->Automatic statistics ?

Re: SELECT FROM DUAL slow
Worker #57742 03/23/18 08:56 AM
Joined: Jun 2007
Posts: 61
Sheffield
I
Member
OP Offline
Member
I
Joined: Jun 2007
Posts: 61
Sheffield
I don't have that enabled.
However, I have just enabled every option in that setting and re-tested - it's running in the same ball park.
Thanks though.

[quote=Worker]Maybe this is related to Preferences->Oracle->Options->Automatic statistics ? [/quote]

Re: SELECT FROM DUAL slow
IncredibleMrT #57743 03/23/18 10:18 AM
Joined: Aug 1999
Posts: 22,232
Member
Offline
Member
Joined: Aug 1999
Posts: 22,232
To obtain some more diagnostic information, can you modify the shortcut and add the DebugSQL parameter? For example:

"C:\Program Files\PLSQL Developer 12\plsqldev.exe" DebugSQL

Reproduce the problem and send me the debug.txt file that is generated in the %APPDATA%\PLSQL Developer 12 directory (e.g. C:\Users\<User>\AppData\Roaming\PLSQL Developer 12).


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.032s Queries: 15 (0.010s) Memory: 2.5117 MB (Peak: 3.0405 MB) Data Comp: Off Server Time: 2024-06-16 21:14:48 UTC
Valid HTML 5 and Valid CSS