Search code examples
iossqlitegcdwebserver

How to connect to local database from local server in iOS


I have following scenario

  1. I have Sqlite file of 4GB of data to support offline.
  2. Can I copy to the app and distribute the app, does it affect application performance.
  3. I need to read data from the same sqlite file, can I use the native sqlite commands to read from 4GB of sqlite file or can I run a server like GCDWebServer to read data from sqlite file. Which approach gives better performance.

Solution

  • i used iTunes sharing functionality for accessing database from outside the app resources, with GCDWebServer to support offline tile rendering functionality.