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

  • SEARCH
  • Home
  • 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 938585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:40:05+00:00 2026-05-15T21:40:05+00:00

I have a huge database that has several tables that hold several million records.

  • 0

I have a huge database that has several tables that hold several million records. It’s holding engineering data for a client and continually grows. This is impacting performance, even with optimised indexing. So I’ve been looking at partitioning.

However, I would be looking at partitioning on a version held in a table. In it’s most simplistic form the table comprises of:-


VersionID int
SheetID int
CreationDate datetime
SomeDate nvarchar(255)
Version int

And the data would look something like:-


1, 1, 2010-09-01, blah, 1
2, 1, 2010-09-02, more blah, 2
3, 1, 2010-09-04, blah, 3
4, 2, 2010-09-02, more blah, 1

For every new change to a ‘sheet’ in the system, this table has a new entry added with a new version. Ideally I want to partition the table so that I have the top 2 versions for each ‘sheet’. So from the table above I’d want versions 2 & 3 for sheet id 2, and version 1 for sheet id 2, with the rest moved to the partition. From what I’ve read this doesn’t seem possible. Am I right or wrong?

If I’m wrong, then following on from this I have a bunch of tables that all link back to this table. These hold the various versions of data entered. Can I partition these based on the partition of the ‘main’ table, or does the partition have to be specifically based on a column from the table it refers to?

NB I’m not the most au fait SQL developer, so apologies if this is a completely daft question!

  • 1 1 Answer
  • 1 View
  • 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-15T21:40:06+00:00Added an answer on May 15, 2026 at 9:40 pm

    For the quantity of ‘several million records’ – partitioning would be overkill – I suspect you would be better looking at the query plans of the poor performing queries and reviewing the indexes that are satisfying them.

    The goal of partitioning is to provide a way of aging older data without large scale deletions, partition elimination as a performance gain is a by-product and can still be outpaced by a suitable clustered index – depending on the index size / table size.

    You can do range partitioning within SQL, but it would be quite a lot of overhead to implement such a variable moving window, if I judge the requirements correctly.

    In terms of the final question, to be partitioned on the same value, that value would have to appear in both tables, although technically you can partition on a computed column so if you had a schema bound function that could be used to compute the corresponding value, then that would suffice. (However, I think this is overkill, given the small number of rows.)

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

Sidebar

Related Questions

I have a huge database that has lots and lots of poorly documented constraints.
I have a SQL Server database that has a huge proliferation of stored procedures.
I have a SQLite database that contains a huge set of log messages. I
I have huge amount of data from database, i need to get or store
I have a MySQL database with a few (five to be precise) huge tables.
I have a huge form that has around 110 fields columns (single row) that
I have inherited a Access database that has a query that SELECTs over 50
Image that I have a huge database which stores threads and posts from different
Suppose I have a database table that has a timedate column of the last
I am using the telerik MVC template and have a database that has a

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.