What are your most common sql optimizations?

Reducing the amount of data that is returned, by only returning the fields required and only returning the rows required. This is the most common, as you do it for every query that returns data.

Adding indexes. This is not done as frequently, as some tables doesn’t need any other index than the one created for the primary key.

Leave a Comment