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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:25:22+00:00 2026-05-27T08:25:22+00:00

Today I found an article online discussing Facebooks architecture (though it’s a bit dated).

  • 0

Today I found an article online discussing Facebooks architecture (though it’s a bit dated). While reading it I noticed under the section Software that helps Facebook scale, the third bullet point states:

Facebook uses MySQL, but primarily as a key-value persistent storage,
moving joins and logic onto the web servers since optimizations are
easier to perform there (on the “other side” of the Memcached layer).

Why move complex joins to the web server? Aren’t databases optimized to perform join logic? This methodology seems contrary to what I’ve learned up to this point, so maybe the explanation is just eluding me.

If possible, could someone explain this (an example would help tremendously) or point me to a good article (or two) for the benefits (and possibly examples) of how and why you’d want to do this?

  • 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-27T08:25:22+00:00Added an answer on May 27, 2026 at 8:25 am

    I’m not sure about Facebook, but we have several applications where we follow a similar model. The basis is fairly straightforward.

    The database contains huge amounts of data. Performing joins at the database level really slows down any queries we make on the data, even if we’re only returning a small subset. (Say 100 rows of parent data, and 1000 rows of child data in a parent-child relationship for example)

    However, using .NET DataSet objects, of we select in the rows we need and then create DataRelation objects within the DataSet, we see a dramatic boost in performance.

    I can’t answer why this is, as I’m not knowledgeable about the internal workings of either, but I can venture a guess…

    The RDBMS (Sql Server in our case) has to deal with the data that lives in files. These files are very large, and only so much of it can be loaded into memory, even on our heavy-hitter SQL Servers, so it there is a penalty of disk I/O.

    When we load a small portion of it into a Dataset, the join is happening entirely in memory, so we lose the I/O penalty of going to the disk.

    Even though I can’t explain the reason for the performance boost completely (and I’d love to have someone more knowledgeable tell me if my guess is right) I can tell you that in certain cases, when there is a VERY large amount of data, but your app only needs to pull a small subset of it, there is a noticeable boot in performance by following the model described. We’ve seen it turn apps that just crawl into lightning-quick apps.

    But if done improperly, there is a penalty – if you overload the machine’s RAM but doing it inappropriately or in every situation, then you’ll have crashes or performance issues as well.

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

Sidebar

Related Questions

While searching a bug in my code today I found a strange thing. When
I was going through an article today when it mentioned the following: We've found
Just started with Sencha today and found it a bit overwhelming. Was able to
Today I found out that putting strings in a resource file will cause them
Today I found LiquiBase project and I think it is very interesting. I would
Today I found the following: #include <stdio.h> int main(){ char x = 255; int
I was looking at a css file today and found the following rule set:
Googling today I couldn't found sample or mentioning of best practice: how to escape
Today, I found out that you can write such code in C++ and compile
Found a piece of code today, that I find a little smelly... TMyObject.LoadFromFile(const filename:

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.