OCUP UML fundamental and ITIL foundation
With other words, apply indexes.Leandro Coutinho wrote:you can cache the result
Bauke Scholtz wrote:
With other words, apply indexes.Leandro Coutinho wrote:you can cache the result
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
John Ben wrote:
Other things which prevent the use of indexes are for instance selects like
select xx from yyy where y_executed != 'Y'
instead of
select xx from yyy where y_executed = 'N'
What I want to say is that if possible always =, like, etc. should be preferred over !=, not like, etc.
John Ben wrote:Hi Mansi,
after I saw your query my first guess was that your problem may result from the use of many outer joins.
But you may need them, so it's very hard to give you a good advice.
If it is possible I would start to rearrange my query to get rid of some of the outer joins and try to use some inner joins instead.
At least you have a working select where you can test if your changed statements will give you the same result..
John
OCUP UML fundamental and ITIL foundation
OCUP UML fundamental and ITIL foundation
Jan Cumps wrote:Could it be that teamProduct.PRODUCTID and teamProduct.TEAMID are indexed?
You removed the function around it, and now your database is able to use these indexes.
Are they part of the primary key?I dont think so, these columns were never indexed
OCUP UML fundamental and ITIL foundation
Jan Cumps wrote:
Are they part of the primary key?I dont think so, these columns were never indexed
OCUP UML fundamental and ITIL foundation
Leandro Coutinho wrote:do you really need to use decode inside decode?
couldn' you use somth like this:
?
I'm still in control here. LOOK at this tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|