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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:21:12+00:00 2026-05-26T06:21:12+00:00

JOIN is a handy feature of SQL databases, but what about large databases (>10GB).

  • 0

JOIN is a handy feature of SQL databases, but what about large databases (>10GB). Consider three (two-column) tables of many-to-many relationship, as we want to get items associated to one single case (e.g. tags of ONE article).

FACTS (correct me if I’m wrong):
1. For JOIN, three tables should fit within the memory.
2. Single SELECT by PRIMARY KEY does not consume memory.
3. When we have concurrent many concurrent read connections, excess connection will be kept in queue (not making unsuccessful request or overload).

Then, isn’t it better to perform three simple SELECT queries. This makes the system a little bit slower, but I believe it is more efficient to deal with the entire tables of Gigabyte size.

One may suggest that adding more is the ultimate solution; but I think still handling such large tables is not easy with excess RAM.

Limiting actions to simple SELECT queries with PRIMARY KEY can be a practical approach to work with large databases efficiently.

  • 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-26T06:21:13+00:00Added an answer on May 26, 2026 at 6:21 am

    If you are claiming that it’s better to do the selects on three separate tables, then join the data yourself outside of the database engine, then you are wrong. The database will do a better job joining your queries than you can. The tables don’t all have to fit into RAM for a join to work.

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

Sidebar

Related Questions

I am doing a join on two tables. One is a user's table and
I'm trying to force Linq to preform an inner join between two tables. I'll
I have a join on two tables defined as a left outer join so
Two snippets of MySQL: SELECT * FROM annoyingly_long_left_hand_table LEFT JOIN annoyingly_long_right_hand_table ON annoyingly_long_left_hand_table.id =
I need to join two binary files with a *.bat script on Windows. How
A cross join performs a cartesian product on the tuples of the two sets.
I am about to join a new software team midway through a project. They
Could somebody assist me in converting a sql query into LINQ, i'm pretty handy
As per https://stackoverflow.com/questions/3264227/relations-with-multiple-keys-in-doctrine-1-2 , I have two tables which (as I can't get it
I have two tables: BOOK BOOK_CODE TITLE PUBLISHER_CODE TYPE PRICE PAPERBACK --------- ----- --------------

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.