I'm in the process of developing my second iPhone application, and am looking for architectural recommendations on DB handling.
The idea is: 1. A database of information is stored on a server (LAMP stack), and information is delivered to the device via JSON. This part has been implemented.
The user is able to "favorite" an item in the database, which stores it in SQLite on their local device.
The user can also submit new items to the remote server that don't already exist, making them available for other users to favorite.
The user can search both databases, via a single search interface to find items.
I'm trying to decide the data structure for this, and how to deal with the resulting objects from the database. I think I have two options for the objects:
The remote DB and the local DB have the same object type, and the local DB stores the id of the remote item to link the two
Separate objects for the remote item and the local item
Any ideas, thoughts, etc are greatly appreciated!