Jump to content

amedhussaini

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

Everything posted by amedhussaini

  1. Hi everyone, We have a social networking iPhone application that is constantly making API calls to our server in order to bring in information and write information to the database. Every time a friend is added, a comment is created, etc (basically in a bunch of different tables things are being created)--we want this stuff to show up on one screen, like a facebook 'feed'. I've thought about approaching this two ways, and I'd like some advice from the experts out there on the more efficient way to do it. 1. a lot of DB writes--in other words, everytime a user does something that does belong in the feed (like comment on something, or like something), at the same time the api can add a row to a new 'notifications' table. that way, when i need to pull a feed for someone later on, i can just pull from this one table 2. one big read--currently, i don't have it setup like the above--the plan was to just query all the tables when u want to refresh your feed.. my api will return a big xml doc to the iphone and then the iphone will rearrange the data as needed what do you think is the better approach?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.