Hello,
In 11.2 I found a query doing this:
Select count(1)
from T
where dbms_lob.compare(T.blobColumn, customPkg.encrypt(:1 , '<key>')) = 0
and otherColumn != :2
which means I'm traversing the whole T minus 1 row (because otherColumn has unique values), taking every blobColumn and comparing it with :1 which is a clob, that gets encrypted and returned as a blob...
This table is constantly growing, and soon this query will take too much time...
Do you think there's a way of indexing these embedded calls DBMS_LOB.COMPARE(customPkg.encrypt()) ??
customPkg.encrypt() is deterministic.
Thanks a lot.
Sebino