Query To Find List Of Addresses Is Taking 2 Hours To Return

(Doc ID 2305107.1)

Last updated on SEPTEMBER 13, 2017

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 we have in the table is 34 million.


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms