Groups | Search | Server Info | Login | Register
Groups > comp.lang.objective-c > #10
| From | Tom Harrington <tph@pcisys.no.spam.dammit.net> |
|---|---|
| Newsgroups | comp.lang.objective-c |
| Subject | Re: <newbie> SQLite vs Core Data |
| Organization | Atomic Bird |
| References | <98e32057-141f-4a50-8554-d5e00177ccc9@s9g2000yqm.googlegroups.com> |
| Date | 2011-04-06 16:53 -0600 |
| Message-ID | <tph-221F4A.16534006042011@localhost> (permalink) |
In article <98e32057-141f-4a50-8554-d5e00177ccc9@s9g2000yqm.googlegroups.com>, Suresh Kumar Narayanasamy <n.sureshkumar@gmail.com> wrote: > Hi, > I am from a asp.net brackground and trying to build a pilot IPAD > application. > We have some 50,000 products that needs to be imported from a > webservice to the IPAD locally, so that customers can even view the > products in airplane mode. > so sto store the 50,000 products what approach i need to use. You might want to consider building that data into the app instead of downloading it, because that might take a while to download. Unless the data changes quite frequently, building it in is a viable alternative. > Do i need to use the SQLite or Core data? My pilot project will > enable the user to search for an products. > Since i come from a web development background and build a couple of > apps using phonegap, i thought sqlite is the best approach. > but reading some of the articles, it looks like there is an other > approach called core data. Both would work, which one you use depends on how the app needs to operate. Core Data is not a database, it's an object repository that offers features like relationships, searching and sorting. Those features are similar to a database but you don't really use it the same way. It allows you to define objects that match your data model, and then save and retrieve those objects directly. With SQLite you read and write database records, of course. Converting those to/from your model objects is an extra step that you would need to implement. Apple has some introductory documents for Core Data that will help you figure out if it's the right tool for your app: "Technology Overview": http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Co reData/Articles/cdTechnologyOverview.html#//apple_ref/doc/uid/TP40009296- SW1 "Core Data Basics": http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Co reData/Articles/cdBasics.html#//apple_ref/doc/uid/TP40001650-TP1 -- Tom "Tom" Harrington Independent Mac OS X developer since 2002 http://www.atomicbird.com/
Back to comp.lang.objective-c | Previous | Next — Previous in thread | Next in thread | Find similar
<newbie> SQLite vs Core Data Suresh Kumar Narayanasamy <n.sureshkumar@gmail.com> - 2011-04-06 08:58 -0700
Re: <newbie> SQLite vs Core Data Tom Harrington <tph@pcisys.no.spam.dammit.net> - 2011-04-06 16:53 -0600
Re: <newbie> SQLite vs Core Data Suresh Kumar Narayanasamy <n.sureshkumar@gmail.com> - 2011-04-07 08:34 -0700
csiph-web