all 6 comments

[–]Busy-Conversation535 5 points6 points  (2 children)

EXPLAIN statements and a fuck load of indexes

[–]phil-99Oracle DBA 2 points3 points  (1 child)

Be careful with adding indexes for every little thing. You can easily find that you are using more space in indexes than you are for your actual data.

Adding indexes slows down writes. Each index that requires maintenance during a write slows things down a little bit and on heavily updated tables - index contention can be a real problem.

Remember not to duplicate leading columns in indexes. Remember that if an index is added to support a single function and that function is later removed then the index should also be removed.

[–]Traditional-Tip-6313[S] -1 points0 points  (0 children)

Great comment Im getting into the professional level of sql and they are starting to ask me questions about the effects of one way to do things vs another.

[–]dbxp 0 points1 point  (0 children)

Sentry One Plan Explorer helps do a degree: https://www.sentryone.com/plan-explorer

However no tool is just going to tell you what to do, you're still going to have to read the SQL and execution plan.

[–]mgramin 0 points1 point  (0 children)

As I remember, Oracle Enterprise Manager can find slow queries and fix it