Core data taking time to insert records with fetching entity & set as relationship
问题 I have 2 entities: Components & SurveyReadingWeb that have a one-to-many relationship. I have saved Components data in core data database; but while saving SurveyReadingWeb -- in a for loop -- I have to fetch Components data entity by passing component id and setting the surveyreadings isComponentexists relationship, like in the code below for 8000 records. This process is taking too much time, nearly 7 minutes. How can I reduce the time? for item in items { autoIncrementId = autoIncrementId