Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6156387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:36:02+00:00 2026-05-23T20:36:02+00:00

I have an operation is sql insertion. I have another operation is sql selection

  • 0

I have an operation is sql insertion. I have another operation is sql selection and updation. Table size is 300K-1Million. If I put index, does that mean my insertion and updation would be slowed and selection would be faster. But normally how faster select would be, how slower insertion and updation would be? Generally, with 300K-1Million records, does general performanced would be enhanced or not?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:36:03+00:00Added an answer on May 23, 2026 at 8:36 pm

    If only life were that simple, the answer as always is; it depends.

    Imagine your table as your own “little black book” of people to you like. Each page has a different persons name, address, date of birth, etc. (Book = Table, Page = Record)

    Now, you only want each person in there once, based on their first name and last name (unique key, possibly primary key). But you also want them in there in Order so that they’re easy to look up. You decide to order them by their last name, and for people with the same last name, order them by their first name (Clustered Indexed, the physical order in which they are stored, benefits Selecting data)

    Now, with that clustered index you can very quickly look up your friends in your book. But if you add a new person, you can’t just add them to the end, you have to find the right place int he book to insert them. (Insert overhead of an index)

    If they inconventiently change their name (like getting married), you have to find them, change the name, and move them to somewhere else in the book. Fortunately though, the index did make it easier to find them in the first place; it’s a pain to move them to a new place in the book, but not half as bad as trying to find them in a randomly ordered book. (Update overhead of the index)

    Eventually, there comes a day when you realise that you’re awful at remembering birthdays. So you turn to your little back book. Unfortunately, they’re ordered by their names, not their dates of birth; finding out who’s birthday’s are coming up is a real pain! So you create a little index at the back; an ordered list of birthdays and the name of each person born on that day. (Secondary index, benefits selects based on date of birth)

    If you find someone who’s date of birth you got wrong, however, you have to things to change; the DoB on their page, and the position in the DoB index. Likewise, when you add a new person to the book, you have to find the right page to insert them, but also the right place in the DoB Index to add their name. (Update and Insert overheads)

    Fortunately, updateing their address isn’t a problem. Just find them, change the address, and your done. Until the day comes that you create an Address Index as well…

    In short…
    1. An index can help specific kinds of Select performance
    2. It always adds an Insert cost
    3. It can speed up finding a record to Update
    4. But can also add an overhead to Updates on Indexed fields

    The trades and balances of your indexes depend on your use of the data. Lots of Inserts and Updates? Lots of Selects? Lots of different Selects warranting multiples indexes, etc?

    You can do it all with science, but in practice it feels like an art.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I have SQL repeat some set-based operation an arbitrary number of times
I have a timely operation that runs on a background thread. While running, I
I have a division operation inside a cycle that repeats many times. It so
I have a doubt regarding database operation.I have one insert query that should run
I erroneously delete all the rows from a MS SQL 2000 table that is
Most of SQL queries have no math operation on where clause. What is wrong
We have a Sql Server 2000 database application that needs to update our applications
I am designing a SQL table to store hours of operation for stores. Some
I have a field called time_elapsed that stores a sql TIME value, a start_date
I have an index: CREATE INDEX BLAH ON EMPLOYEE(SUBSTR(TO_CHAR(EMPSHIRTNO), 1, 4)); and an SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.