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

The Archive Base Latest Questions

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

Im creating a simple app, for internal use, with basic (facebook like) functionality, i

  • 0

Im creating a simple app, for internal use, with basic (facebook like) functionality, i have a wall, where users can create a ‘post’ and then other users can comment.

Here’s how i design it, When i create a post, its added to the ‘PostTbl’
and when a comment is made its added to the ‘CommentsTbl’

As i load all post, in the SQL statement i also do a Count() for number of comments for each post.

so now the web page loads with just the post, and with a link to view comments. when they click on ‘comments’ then i do a AJAX call to load comments for that post to the page.

But facebook so quickly loads POST and Last 2 Comments, immediately…

Anyone have an idea what do you think is their design pattern that they can easily do this so efficiently?

thanks all

  • 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-22T16:27:04+00:00Added an answer on May 22, 2026 at 4:27 pm

    Is it not the case that in Facebook when the number of comments are less than X (I can’t remember the number off the top of my head) then it will display them immediately when you click to see more. However when there are more than X comments it actually takes you to dedicated story page which has a listing of all the recent comments.
    This suggests that in the former example, all of the comments are pre-fetched but just hidden from view.

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

Sidebar

Related Questions

I'm creating a simple back-end app through which the user can create/update/delete database rows
I'm creating a simple AIR app with resize-functionality. Of course i need to position
I need to create a simple app which can display geometries from Oracle Spatial
I am creating a simple blog app and so far I have 3 tables,
I am working on a simple django app that allows users to create posts
I'm currently learning rails by creating a simple project management app. I've gotten to
When creating a simple object hierarchy in Python, I'd like to be able to
I am creating a simple FeedReader iPhone app where a RSS is feed is
Looking at creating a simple batch file for my app. My app needs some
I'm creating a simple app (PHP & MYSQL) that collects information about an event,

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.