My Oracle Support Banner

Query To Find List Of Addresses Is Taking 2 Hours To Return (Doc ID 2305107.1)

Last updated on JULY 14, 2020

Applies to:

Oracle Communications Unified Inventory Management - Version and later
Information in this document applies to any platform.


On : version, Other Issues

Query for finding the list of geographical addresses based on specification and name is taking more than 2 hours to return the result. We have analyzed and suspect that the "order by" in the query is the cause. On removal of 'order by' clause we found substantial improvement in performance. PFB the query with and without order by.

select * from geographicplace where ((UPPER(NAME) LIKE '%' AND (SPECIFICATION = 6300025 )) AND (ENTITYCLASS IN ('GeographicAddressDAO' )));
select * from geographicplace where ((UPPER(NAME) LIKE '%' AND (SPECIFICATION = 6300025 )) AND (ENTITYCLASS IN ('GeographicAddressDAO' ))) ORDER BY ID ASC;

Please suggest way to suppress the 'order by' clause in the geographical addresses search.
FYI, total number of geographical addresses in the table is 34000000+.




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.