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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:26:17+00:00 2026-05-29T05:26:17+00:00

I am in the process of creating a Facebook App for my website which

  • 0

I am in the process of creating a Facebook App for my website which includes functionality that requires the users friends list.

Retrieving the friends is no problem, what I am struggling to decide, is how to store them.

  1. Option 1 – Store the users in my MySQL database, I have opted not to go for this as my database will become very heavy, very quickly. In addition, I will need to create a table for each individual Facebook user!
  2. Option 2 – Store the Facebook friends array in a session which is updated every half an hour to ensure new friends are included. Ignore the fact that the session updates every half an hour, is it a bad idea to store, what can be a very large array, within a session?

The website is likely to be receiving high volumes of traffic, and will therefore be storing a lot of these sessions.

Although I am an experienced developer, I am not overly experienced with sessions in these circumstances. I would simply like to know whether or not this is a bad idea?

Just to give you a little info on the typical friends array:

  1. Each array is multidimensional in the format {0[uid:1,name:Jo Bloggs,picture:test.jpg],1…}
  2. A friends list typically ranges from 100 items to 5000 items, although averaging around 700. These are not small!

If this is a bad method for storing the friends, what other options (excluding MySQL) are there?

Do sessions have an effect on memory (RAM) usage?

  • 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-29T05:26:18+00:00Added an answer on May 29, 2026 at 5:26 am

    For your requirements, I highly recommend installing MemCacheD on your server. See: http://memcached.org/ for more information.

    Session is only for the current user logged in, so sharing the information would be hard between sessions. Also when the session goes away, so does the user data.

    For memcached data is stored in key/value pairs.

    So for a key, you could use facebook ID, and for the value, a serialized object of user data.

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

Sidebar

Related Questions

I am in the process of creating an iPhone app that requires to interact
I'm in the process of creating a Facebook app that uses a Page Tab
) I'm in a process of creating a memory game. My problem is that
I'm in the process of creating an app, which would work with a Freemium
I'm in process of creating a Console Application, which needs to invode methods that
I'm in the process of creating an android app that makes extensive use of
Suppose that a process is creating a mutex in shared memory and locking it
I am in the process of creating an app, and one of the pieces
I am in the process of creating a site that i would like to
I'm in the process of creating a web service that uses XML to handle

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.