dotconnect Index Hints
Posted: Wed 19 Nov 2014 10:45
In the article
http://blog.devart.com/using-oracle-opt ... ework.html
is described how to use hints to force oracle to use an index.
I have following question: Devart uses table synonyms and the hint
only works, when I write it with the correct synonym but not when
I only use the table name.
E.g in the example:
ctx.Exployees.Where("Devart.Data.Oracle.HINTS('INDEX(employees index1)')")
it could be, that devart creates a synonym, depending on the linq query and I must use something like "MY_SYNONYM"
ctx.Exployees.Where("Devart.Data.Oracle.HINTS('INDEX(\"MY_SYNONYM\" index1)')")
It is not always easy to find out what is the synonym of the outer most select statement.
And I am not sure if always the same name is used.
What is your suggestion how I should handle this?
http://blog.devart.com/using-oracle-opt ... ework.html
is described how to use hints to force oracle to use an index.
I have following question: Devart uses table synonyms and the hint
only works, when I write it with the correct synonym but not when
I only use the table name.
E.g in the example:
ctx.Exployees.Where("Devart.Data.Oracle.HINTS('INDEX(employees index1)')")
it could be, that devart creates a synonym, depending on the linq query and I must use something like "MY_SYNONYM"
ctx.Exployees.Where("Devart.Data.Oracle.HINTS('INDEX(\"MY_SYNONYM\" index1)')")
It is not always easy to find out what is the synonym of the outer most select statement.
And I am not sure if always the same name is used.
What is your suggestion how I should handle this?