Query with scalar function has sub-optimal query performance (Doc ID 1938011.1)

Last updated on FEBRUARY 27, 2016

Applies to:

Oracle TimesTen In-Memory Database - Version 11.2.2.6.7 and later
Information in this document applies to any platform.

Symptoms

The following query is slow when executing.

 

select count(distinct irnumber) from
table1 tab1, userprofile up
where tab1.inum = trim(up.id)
and up.roleid = 3;

Cause

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