side by side of my sides
cannot describe more..

Using asterisk in a Select Query

December 23, 2007 12:44 by admin

One of many reasons why using the plain * operator in JOINs is ill advised :

One good principle to adopt early on is this to select what you need, and need what you select. What I’m
getting at here is that every additional record or column that you return takes up additional network
bandwidth, and often, additional query processing on your SQL Server. The upshot is that selecting
unnecessary information hurts performance not only for the current user, but also for every other user
of the system and for users of the network on which the SQL Server resides.
Select only the columns that you are going to be using and make your WHERE clause as restrictive as
possible.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: ,
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag




Live preview

August 21. 2008 00:03

Gravatar