Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.pcisys.net!news.pcisys.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 06 Apr 2011 17:53:40 -0500 From: Tom Harrington Newsgroups: comp.lang.objective-c Subject: Re: SQLite vs Core Data Organization: Atomic Bird References: <98e32057-141f-4a50-8554-d5e00177ccc9@s9g2000yqm.googlegroups.com> User-Agent: MT-NewsWatcher/3.5.1 (Intel Mac OS X) Date: Wed, 06 Apr 2011 16:53:40 -0600 Message-ID: Lines: 52 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-oYh+aIdpV5uPq7OZKhJpaTpCO6bZoFBhR4panue5g7YM3rCPf2m0K7fGz2SN5/TVrZty63+dzBwT04Y!8nBd6JB4tNs4JGQy2U5MNFy8+59zzElni5B5dSV4CTW4VQTxqovT7RKyIMj3kWJLNtwqfab5ZL5l!VNwucA== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3112 Xref: x330-a1.tempe.blueboxinc.net comp.lang.objective-c:10 In article <98e32057-141f-4a50-8554-d5e00177ccc9@s9g2000yqm.googlegroups.com>, Suresh Kumar Narayanasamy 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/