Skip to Main Content

SQL Developer for VS Code

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compile performance

Peter L.Jan 18 2024

SQL Developer for VS Code is excellent news, thanks!

Compilation seems to take forever, so I generated a procedure using the following script:

WITH x AS ( SELECT ROWNUM AS i FROM dual CONNECT BY ROWNUM <= 1000 )
SELECT 'CREATE OR REPLACE PROCEDURE vs_code_test_proc AS' FROM dual UNION ALL
SELECT ' c_' || i || ' CONSTANT PLS_INTEGER := ' || i || ';' FROM x UNION ALL
SELECT 'BEGIN' FROM dual UNION ALL
SELECT ' dbms_output.put_line( c_' || i || ' );' FROM x UNION ALL
SELECT 'END vs_code_test_proc;' FROM dual;

With SQL Developer, the resulting script with 1000 constants compiles immediately.

  1. With VS Code, it takes more than 30 seconds, first “Preparing for execution” and then “Query Runner”.

  2. I also made the mistake of selecting the whole text and then using “Run in SQLcl”. It pastes everything into the TERMINAL and gets slower with every line - I doubt that it would finish in an hour.

  3. Generating the same procedure with 2000 constants instead leads to a StackOverflow exception when trying to compile.

Can you reproduce any of this? Thanks!

This post has been answered by thatJeffSmith-Oracle on Jan 18 2024
Jump to Answer
Comments
Post Details
Added on Jan 18 2024
3 comments
210 views