Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Server > deterministic f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 16536 of 16855
Post > Topic >>

deterministic function index

by chmanu@[EMAIL PROTECTED] May 9, 2008 at 08:36 AM

Hello,

I explain my pb : i've created a table with 3 columns ( t ( col1,
col2, col3) )

For performance reasons, i've created a function get_col3(v1, v2 )
returning v3 which is col3%type type and is used in a view.

My queries are very much less cost than previously.

Now, when i want to query with a filter on get_col3(v1, v2 ) field, i
have to create a function index (with get_col3 function).
A problem appeared when i want to update or insert into my table t :
ora-04091 (table string.string is mutating, trigger/function may not
see it)
I understand that the select query into the index function can't know
which value to take. So, I 'm now using PRAGMA AUTONOMOUS_TRANSACTION
parameter.
The problem now is that the sql execution plan doesn't indicate what
is the indexes using in the view statement and my query is quite long
(but not as long as when there was no index). How can i know it ?

Best regards,

Chmanu
 




 1 Posts in Topic:
deterministic function index
chmanu@[EMAIL PROTECTED]   2008-05-09 08:36:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 0:37:45 CDT 2008.