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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:00:07+00:00 2026-05-27T12:00:07+00:00

I have a question that was brought up in a recent discussion with a

  • 0

I have a question that was brought up in a recent discussion with a co-worker.

Let’s assume that you have a single table with 100,000,000 rows, and you each of those rows has an indexed column (varchar). There are 1000 unique values for this column, therefore each value has 100,000 rows related to it. I want to find all of the rows that are related to the one of the unique values (I will supply said value), but with some additional filtering logic as well (not important).

Would it be faster, slower, or just as fast to store 100,000 rows in 1000 different tables, and search only the table I need, or use the method listed above?

Assume all of the tables would have the same schema.

  • 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-27T12:00:08+00:00Added an answer on May 27, 2026 at 12:00 pm

    Seaching just the table you need will be faster. It’s like asking is it faster to search for ChapterX of a book, or just be given a book that is only ChapterX.

    This is, however, mis-leading. As how will you determine which table to query? 1000 IF statements, or a binary tree of IF statements so as to get there in 10 hops? No matter what you write, I would NOT expect any of them to be faster than using the Index of the unified table.

    Not to mention the clutter of 1000 tables.

    There is an argument (and a time & place) for partitioning data, but this is a very poor example.

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

Sidebar

Related Questions

I have this homework question: Assume a Database table has 0 records at time
I would be certain that this question addresses something that would have been brought
Question: I have a question that is apparently not answered by this already-asked Bash
I have a question that may be quite naive, but I feel the need
I have a question that I just don't feel like I've found a satisfactory
I have a question that I'm ashamed to ask, but I'm going to have
I have a question that may sound odd, but being somewhat of a newbie,
I have a question that can I use AS400ConnectionPool in Spring if then pls
I have a question that's somewhat of an extension of this thread . I
I have a quick question that I can't find anywhere. I am limiting my

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.