Christo Kutrovsky
Member³
Please take the content of this message seriously.
When using the browser in PL/SQL developer, and when expanding:
Tables->a table->Indexes->a specific index
then upon clicking on the "Columns" in my specific case, PL/SQL Developer generated 280 Kb of traffic to expand 3 columns of the index.
Because I am on a internet connection, this took about 30 seconds. I looked on the traffic between PL/SQL developer and the database and found the following queries to generate the biggest part of the traffic:
select col.*, com.Comments
from sys.all_tab_columns col,
sys.all_col_comments com
where col.owner =
wner
and col.table_na@me = :table_name
and com.Owner (+) = :Owner
and com.Table_Name (+) = :table_name
and com.Column_Name (+) = col.Column_Name
order by col.column_id
because of "col.*" this result set is very wide, and if the table has 100+ columns, extremly slow.
This query alone is responsible for 60% of the traffic.
Right after this query the following is executed:
select * from sys.all_constraints
where table_name =
bject_name
and owner =
bject_owner
and constraint_type in ('P', 'U', 'R', 'C')
order by decode(constraint_type, 'P', 0, 'U', 1, 'R', 2,. 3), constraint_name
This is also relativelly wide, and given that most of the columns are not null also results in a lot of rows.
In adition to this this query is executed 8 times in a row (for each index)
select * from sys.all_ind_columns
where index_owner = :index_owner
and index_name = :index_name
order by column_position
However I am expanding ONLY ONE of the indexes, and if I am to expand another one, I have to wait another paitfull 30 seconds.
Do you intend to address this?
When using the browser in PL/SQL developer, and when expanding:
Tables->a table->Indexes->a specific index
then upon clicking on the "Columns" in my specific case, PL/SQL Developer generated 280 Kb of traffic to expand 3 columns of the index.
Because I am on a internet connection, this took about 30 seconds. I looked on the traffic between PL/SQL developer and the database and found the following queries to generate the biggest part of the traffic:
select col.*, com.Comments
from sys.all_tab_columns col,
sys.all_col_comments com
where col.owner =

and col.table_na@me = :table_name
and com.Owner (+) = :Owner
and com.Table_Name (+) = :table_name
and com.Column_Name (+) = col.Column_Name
order by col.column_id
because of "col.*" this result set is very wide, and if the table has 100+ columns, extremly slow.
This query alone is responsible for 60% of the traffic.
Right after this query the following is executed:
select * from sys.all_constraints
where table_name =

and owner =

and constraint_type in ('P', 'U', 'R', 'C')
order by decode(constraint_type, 'P', 0, 'U', 1, 'R', 2,. 3), constraint_name
This is also relativelly wide, and given that most of the columns are not null also results in a lot of rows.
In adition to this this query is executed 8 times in a row (for each index)
select * from sys.all_ind_columns
where index_owner = :index_owner
and index_name = :index_name
order by column_position
However I am expanding ONLY ONE of the indexes, and if I am to expand another one, I have to wait another paitfull 30 seconds.
Do you intend to address this?