Programming Rule: Don`t forget the Database Indexes!
June 05, 08 by the programmerThis rule applies only for applications that uses databases.
If you are making an application, WEB, Desktop or any other kind of application that uses any database that supports indexes, do not forget to create indexes on the most important fields from you tables.
Those fields are usually the fields that are most used in your SELECT statements, the fields that you join your queries by, usually the foreign keys in your tables.
By adding indexes you are increasing the speed of your application, or in other words you are decreasing the execution time of your SELECT statements in your SQL queries and with that you are improving the overall performance of your application.
You will feel the increased speed especially if your database has tables with a lot of data inside.
