Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. INDEX and INSERT in SQL Server 2005

INDEX and INSERT in SQL Server 2005

Scheduled Pinned Locked Moved Database
databasequestionsql-serversysadmin
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sujithkumarsl
    wrote on last edited by
    #1

    Hi i have table which is having 0.5 billion entries... In that table, i have added 5 columns for indexing.all are Non-Unique and Non-Clustered. One application is frequently insert new rows to this table... My question is Will the INDEX cause, the INSERT operation to take more time to completed?

    My small attempt...

    A 1 Reply Last reply
    0
    • S sujithkumarsl

      Hi i have table which is having 0.5 billion entries... In that table, i have added 5 columns for indexing.all are Non-Unique and Non-Clustered. One application is frequently insert new rows to this table... My question is Will the INDEX cause, the INSERT operation to take more time to completed?

      My small attempt...

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      sujithkumarsl wrote:

      Will the INDEX cause, the INSERT operation to take more time to completed?

      Yes, but whether it is significant is down to testing and usage - if it makes a significant improvement in data retrieval is it worth the slow down with the insert? Its up to you to decide if the trade off is worth it.

      Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

      S 1 Reply Last reply
      0
      • A Ashfield

        sujithkumarsl wrote:

        Will the INDEX cause, the INSERT operation to take more time to completed?

        Yes, but whether it is significant is down to testing and usage - if it makes a significant improvement in data retrieval is it worth the slow down with the insert? Its up to you to decide if the trade off is worth it.

        Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

        S Offline
        S Offline
        sujithkumarsl
        wrote on last edited by
        #3

        Thanks.... actually several SELECT as well as INSERT operation are running at same time.. What will be the wise way to manage the indexes?

        My small attempt...

        A D 2 Replies Last reply
        0
        • S sujithkumarsl

          Thanks.... actually several SELECT as well as INSERT operation are running at same time.. What will be the wise way to manage the indexes?

          My small attempt...

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          sujithkumarsl wrote:

          several SELECT as well as INSERT operation are running at same time

          So there may be blocking on the table anyway. The only way to really find out is to test under real life load.

          Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

          1 Reply Last reply
          0
          • S sujithkumarsl

            Thanks.... actually several SELECT as well as INSERT operation are running at same time.. What will be the wise way to manage the indexes?

            My small attempt...

            D Offline
            D Offline
            David Mujica
            wrote on last edited by
            #5

            In SQL Studio Manager, under the Query menu, choose the option, "Display Estimated Execution Plan" while testing your Select / Insert logic to verify that the indexes you have created are actually being used. If an index is not being used, you may want to recosider whether or not you really need it. david

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups