Print Thread
Code Assistant too slow
#63012 02/02/22 09:38 AM
Joined: Sep 2019
Posts: 34
Spain
E
El Offline OP
Member
OP Offline
Member
E
Joined: Sep 2019
Posts: 34
Spain
Hello:

When connecting to a database with high network latency, for example a cloud database, the Code Assistant is sometimes very slow. For example, inserting all the fields from a table that has 160 fields can take over 30 seconds. In version 15 it takes the same.

[img]https://ibb.co/rM3WYYd[/img]

Could you improve this a bit?

Best Regards,


-------------------------------
Elias F.M.
Re: Code Assistant too slow
El #63019 02/02/22 10:00 AM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
To obtain some more diagnostic information, can you modify the PL/SQL Developer shortcut and add the DebugSQL parameter? For example:

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

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

(For version 15 you can change the version numbers above)


Marco Kalter
Allround Automations
Re: Code Assistant too slow
Marco Kalter #63020 02/02/22 11:33 AM
Joined: Sep 2019
Posts: 34
Spain
E
El Offline OP
Member
OP Offline
Member
E
Joined: Sep 2019
Posts: 34
Spain
I have sent the file by email. With debugsql it took more than 1 minute.


-------------------------------
Elias F.M.
Re: Code Assistant too slow
El #63261 02/15/22 08:54 AM
Joined: Apr 2020
Posts: 20
Germany
D
Member
Offline
Member
D
Joined: Apr 2020
Posts: 20
Germany
..we us a modified canames.sql to solve this

Code
/*
  The name + type results of these queries will be used by the Code Assistant
  if the "Describe Context" option is enabled. After typing 3 or more characters
  the Code Assistant will show a list of matching names.
  Separate multiple queries with semi-colons and use the :schema bind variable
  to restrict names to the currently connected user. 
  In case of an error the query results will be omitted. No error message will
  be displayed.
  Place this file in the PL/SQL Developer installation directory for all users,
  or in the "%APPDATA%\PLSQL Developer" directory for a specific user.
*/
select /*+ NO_PARALLEL*/ object_name, object_type
  from sys.dba_objects o
 where o.owner = :schema
   and o.object_type in ('TABLE', 'VIEW', 'PACKAGE','TYPE', 'PROCEDURE', 'FUNCTION', 'SEQUENCE')
;
select /*+ NO_PARALLEL*/object_name, object_type
  from (select connect_by_root(synonym_name) object_name,
               (select o.object_type
                  from sys.dba_objects o
                 where 1 = 1
                   and s.table_owner = o.owner
                   and s.table_name = o.object_name
                   and o.object_type in ('TABLE',
                                         'VIEW',
                                         'PACKAGE',
                                         'TYPE',
                                         'PROCEDURE',
                                         'FUNCTION',
                                         'SEQUENCE')) object_type
          from sys.dba_synonyms s
         where 1 = 1
           and connect_by_isleaf = 1
           and connect_by_iscycle = 0
         start with s.owner in ('PUBLIC', :SCHEMA)
        connect by nocycle s.owner = prior s.table_owner
               and s.synonym_name = prior s.table_name)
 where 1 = 1
   and object_type is not null
;
select /*+ NO_PARALLEL*/ db_link as object_name, 'DATABASE LINK' as object_type
  from sys.dba_db_links o
  where o.owner = :schema
     or o.owner = 'PUBLIC'
;

Ahoi D:


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.088s Queries: 14 (0.015s) Memory: 2.5134 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-04-27 16:44:40 UTC
Valid HTML 5 and Valid CSS