Technology notes: Revealed

Monday, November 06, 2006

Database Optimization

Lesson for the day...

If your a developer your probably working with databases. My thought for the day is about optimizing queries for reporting. Every now and again I run across a report that takes half an hour to an hour to run. There are exceptions, BUT this is usually a pretty good sign that the query that runs the report might run better with some optimization.

There are some great books on database optimization and I am by no means an expert on the subject... however I have been fortunate enough to work with some good developers with a good amount of experience with database "philosophies".

A few concepts that have helped me are...
  • You are always going to know more about the data than the database optimizer... meaning you know which fields will be used the optimizer does not. So only include the fields that you need in the query and use indexes.
  • If you are using MSSQL use the explanation plan option and find all of the places where you can use indexes on tables... sometimes a well placed conversion can save some processing time.
  • Sometimes a well placed subqueries can improve performance. Be creative and look for places that optimization can be improved.

There are more extensive solutions for database optimization, and I recommend doing more research on the subject as it is "an art form" rather than a templatized method. However, I sincerely hope this entry might help a fellow developer in the future. Best Wishes!

Friday, October 27, 2006

Internet Explorer "Standard Buttons", "Address Bar", "Links" greyed out

Internet Explorer "Standard Buttons",
"Address Bar", "Links" greyed out!

I ran into this problem a little while ago.... absolutely annoying. Here is the problem. I believe it started when I tried to install the google toolbar without uninstalling the yahoo toolbar. Needless to say not exactly a good idea.

Here is the fix that worked for me... use regedit (for windows machines) go to:
HKEY_CURRENT_USER\Software\Microsoft\WindowsCurrentVersion\Policies\Explorer

Change: NoBandCustomize = 0

This solved the problem for me.
I hope it helps you too!