views:

40

answers:

2

I want to develop a CRM iphone app. I think there are 2 methods to deal with the data store, one is using the Sqlite(but it can not share datas with others ?), the other method is using the webservice(let the app CURD data by one web application), I want to know which is better?

+2  A: 

I think the question is not about having one or the other, you could have both: Webservices to expose a central server somewhere where common data is stored and your local SQLite database where a copy of this data is stored. This allows you for fast search etc. instead of contacting some remote server that may or may not be on-line.

Anders K.
Yes, a local data store will be immensely useful especially for the times when network access isn't available. +1
BoltClock
I care the data is too large to store in local
why
Could you tell me is it general to setup a central server to support the database-base app ? i think SQLite is enough good if do not need to share the data.
why
@sharp, yes its quite common to have a central database that everybody accesses using web services.
Anders K.
@sharp, you can store large amounts on the phone as long as its not all needed at the same time in the internal memory. the problem that you have when storing locally is synchronization.
Anders K.
Thank you! It seems like it's a little complex to create a CRM for Iphone :)
why
+1  A: 

If you want to share your data then you have to store your data in webdatabase otherwise store in sqlite

you can store your data in sqlite for fast access and when you want to share that time you can send it to webservice and retrive when you need to see more data

GhostRider