|
-
Dec 21st, 2005, 11:55 AM
#1
Thread Starter
Addicted Member
-
Dec 21st, 2005, 12:09 PM
#2
Re: Indexing?
it is quite simple with regards to indexes, follow these two rules:
1) have as few indexes as possible
2) but as many as you need
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Dec 21st, 2005, 12:14 PM
#3
Re: Indexing?
Each index increases the amount of time needed to INSERT new records - let's assume that the first index doubles the time for INSERT...
So you can see where abhijit is coming from with the suggestion to do as few as possible.
But indexes incredibily speed up access to data when the WHERE clause is related to columns of the index.
We use MS SQL SERVER and always have at least one primary index (almost always CLUSTERED) for each table so that a unique identifier is available for every row.
-
Dec 21st, 2005, 12:55 PM
#4
Re: Indexing?
 Originally Posted by abhijit
it is quite simple with regards to indexes, follow these two rules:
1) have as few indexes as possible
2) but as many as you need
This is very cool way of putting it.
-
Dec 21st, 2005, 01:24 PM
#5
Thread Starter
Addicted Member
Re: Indexing?
Thanks again All, I think I get the picture now =)
-
Dec 21st, 2005, 01:29 PM
#6
Re: Indexing?
 Originally Posted by Hack
 This is very cool way of putting it.
Thats from a text-book I once read a long time ago. I am not sure who came up with that gem.
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|