Results 1 to 6 of 6

Thread: [RESOLVED] Indexing?

  1. #1

    Thread Starter
    Addicted Member Quizton's Avatar
    Join Date
    Dec 2005
    Location
    VB Forums
    Posts
    209

    Resolved [RESOLVED] Indexing?

    Hello ,
    My question is reguarding VB6.0 & MSAccess Visual data manager.
    I have recently been toyin around with this vb6 and was wondering when should I index my tables?, and also, What does it benefit? kinda just the ups and downs? I would also like to thank all of you guys/gals, helping me out, I realize these are the bottom of the totem poll questions. I have an idea of what it is from reading my book, and lookin online, but you seem to know what you are doin and I always like hearin about a few examples from the "Real Deal"

  2. #2
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    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

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    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.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Indexing?

    Quote 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.

  5. #5

    Thread Starter
    Addicted Member Quizton's Avatar
    Join Date
    Dec 2005
    Location
    VB Forums
    Posts
    209

    Re: Indexing?

    Thanks again All, I think I get the picture now =)

  6. #6
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Re: Indexing?

    Quote 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
  •  



Click Here to Expand Forum to Full Width