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 7891149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:32:39+00:00 2026-06-03T06:32:39+00:00

I have a table with +/- 80 million rows (partitioned). The inserts are getting

  • 0

I have a table with +/- 80 million rows (partitioned).

The inserts are getting kinda slow (about 1-3 sec).
The query plan says 68% of the insert is clustered index insert, but there are also some triggers on the table for every insert / update and delete. So its kinda hard to say what is really causing the time.

Anyways, we have some indexes on that table, some with 3-5 columns in it.

What I want to know is what is better, performance wise:
To have some indexes with multiple columns in it, or to have more smaller indexes with less columns?

All tips and suggestions are welcome.

  • 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-06-03T06:32:41+00:00Added an answer on June 3, 2026 at 6:32 am

    The query plan says 68% of the insert is clustered index insert, but there are also some triggers on the table for every insert / update and delete. So its kinda hard to say what is really causing the time.

    I think it’s fairly obvious that it’s your triggers causing the problem. It’s extremely unlikely that inserting a single row would take 3 seconds on such a small table without triggers. You could try removing them and see if your inserts are still slow.

    To have some indexes with multiple columns in it, or to have more smaller indexes with less columns?

    You should look at your queries and see which indexes they are using. To optimize read performance you should add indexes if a slow query could benefit – this could be either a single column index or a multiple column index, depending on the specific query. To optimize write performance you should remove any unused indexes.

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

Sidebar

Related Questions

I have a table with about 35 million rows. each has about 35 integer
I have a table (in MySQL) called unused with about 5.4 million rows. The
I have a table of about a million rows and I need to update
I have a table which will be about 2 - 5 million rows on
I have an azure table with about 5 million+ rows, each partition about 100k
I have a table about 10 million rows. We just imported it from another
We have a large table (450 million rows containing 34 columns of numeric or
I have a table with ~200 million rows and ~15 columns in it. I
I have a table containing 60 million rows. The structure is like entryid, date,
I have a items table with 1 million rows and a users table with

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.