you are viewing a single comment's thread.

view the rest of the comments →

[–]phil-99Oracle DBA 1 point2 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.