Persisting data into multiple tables at the same time

Discussion in 'iOS Programming' started by ashwinr87, Nov 3, 2011.

  1. ashwinr87 macrumors member

    Joined:
    Mar 9, 2011
    #1
    In my iPAD Application, I have 6 UITableViews and to load data for those views, I call 6 different webservices. Each Table view has its own database table/entity.

    My operation for each of the tableview is that I would call a webservice using NSURLConnection and then parse the resulting XML using NSXMLParser and persist the data into the SQLite database using
    Code:
    [managedObjectContext save:&error];
    command.

    I would like to know if there is a way I would be able to persist data into multiple tables in SQLite at the same time.
     
  2. North Bronson macrumors 6502

    Joined:
    Oct 31, 2007
    Location:
    San José
    #2
    Could you broadcast a notification that tells each table to save?
     
  3. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #3
    The same as in this thread, you'll need to use concurrency techniques such as GCD.
     

Share This Page