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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:17:14+00:00 2026-05-23T11:17:14+00:00

I tried searching a while and I did not find a proper convincing answer.

  • 0

I tried searching a while and I did not find a proper convincing answer. Hence the question. I know plist and mysql are kind of on two opposite ends, but I have a solution approach using plist which can be simple. But I doubt the solution approach and feel it is not an elegant solution.

Model:

User has profile with various information such as name, email, date of birth etc. He also has a set or list of other information such as books, hobbies etc. So essentially from a plist perspective it will be nested arrays.

<name>
<email> 
<date of birth>
<books>
  <book1>
  <book2>

<Hobbies>
  <hobby1>
  <hobby2>

...

From a mysql db perspective, there will be 3 tables. One for profile, one for books and one for hobbies. One row per profile with foreign key to Books and Hobbies table.

Problem:
I need to store this information on the server and retrieve on iphone on request
Remember, this user will be able to view the profile of various other users based upon some filter criteria. So all I am asking is where and how to store the profile information of all the users, and such that this user can view them on his iphone when he wants to.

Solution approaches:

Approach 1: (using plist)

For every user, store a plist file on the server. To get the information on iphone, create a http request to get the plist, then display info on iphone from plist using standard methods.
So if the server is at xyz.com, I can get the plist at path xyz.com/userid/profile.plist

Approach 2: (using mysql)

Store the data in mysql database. Send http request to access a php file. The php code queries the profile table by userid, and then queries the Books and Hobbies table by the foreign keys. Create an array of the result. And send the resultant array back to iphone. iPhone now displays profile info from that array.

Which approach is better for a best practices, performance and scalability perspective?

There would be eventually 1000s of profiles. In the first approach that means there will 1000 different plist files on server. In second approach it means 1000 rows in profile table.

  • 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-23T11:17:14+00:00Added an answer on May 23, 2026 at 11:17 am

    Approach 3: (using [insert server side database name] and CoreData or SQLite)

    Create you tables in [insert server side database name] and then create the necessary table structures/entity model for your device. When a user does not have any data on the device make an http request, insert into to your local store on the device, and read from the device from then on or until an update is required.

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

Sidebar

Related Questions

I tried searching around, but I couldn't find anything that would help me out.
Ive tried searching for hours now and cannot find out why my code (aka,
Ok, I have tried searching around for this answer, but with no luck. I
Ok, so I tried searching around first but I didn't exactly know how to
Quick question regarding CSS and the browser. I tried searching SO and found some
I tried searching for this, but couldn't find much. It seems like something that's
I've tried searching for the answer but none are working for me. I'm trying
I tried searching here for a similar solution but didn't see one so I
I tried searching here , but it couldn't help me much .. I want
I've tried searching but couldn't come up with a defined way on how to

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.