{"action":"created","issue":{"url":"https://api.github.com/repos/EasyMapping/EasyMapping/issues/116","labels_url":"https://api.github.com/repos/EasyMapping/EasyMapping/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/EasyMapping/EasyMapping/issues/116/comments","events_url":"https://api.github.com/repos/EasyMapping/EasyMapping/issues/116/events","html_url":"https://github.com/EasyMapping/EasyMapping/issues/116","id":111217128,"number":116,"title":"Received memory warning","user":{"login":"Sh1mor1nka","id":2759167,"avatar_url":"https://avatars.githubusercontent.com/u/2759167?v=3","gravatar_id":"","url":"https://api.github.com/users/Sh1mor1nka","html_url":"https://github.com/Sh1mor1nka","followers_url":"https://api.github.com/users/Sh1mor1nka/followers","following_url":"https://api.github.com/users/Sh1mor1nka/following{/other_user}","gists_url":"https://api.github.com/users/Sh1mor1nka/gists{/gist_id}","starred_url":"https://api.github.com/users/Sh1mor1nka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sh1mor1nka/subscriptions","organizations_url":"https://api.github.com/users/Sh1mor1nka/orgs","repos_url":"https://api.github.com/users/Sh1mor1nka/repos","events_url":"https://api.github.com/users/Sh1mor1nka/events{/privacy}","received_events_url":"https://api.github.com/users/Sh1mor1nka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-13T16:23:22Z","updated_at":"2015-10-13T18:02:31Z","closed_at":null,"body":"I add to my CoreData about 20.000 objects.\r\n\r\ni run these code in loop few times, maybe i shouldn't do these\r\n```\r\nEKManagedObjectMapping *mapping = ...;\r\n    \r\n    // create background context\r\n    NSManagedObjectContext *private = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType];\r\n    [private setParentContext:[YControl sharedManagedObjectContext]];\r\n    \r\n    // add object to CoreData in private queue\r\n    [private performBlock:^{\r\n        NSDate *start = [NSDate date];\r\n        [EKManagedObjectMapper arrayOfObjectsFromExternalRepresentation:array withMapping:mapping inManagedObjectContext:private];\r\n        \r\n        NSError *error = nil;\r\n        if (![private save:&error]) {\r\n            NSLog(@\"Error saving context: %@\\n%@\", [error localizedDescription], [error userInfo]);\r\n            abort();\r\n        }\r\n\r\n        NSLog(@\"update time for %@: %f\", table, [[NSDate date] timeIntervalSinceDate:start]);\r\n    }];\r\n```\r\n\r\nand after i \"Received memory warning\", what can it bee? I don't have memory leaks. Thank you.\r\n\r\nUPD: What is strange, that memory jumps to 1Gb, and then falls to 90mb, WTF?)\r\n\r\nUPD: I found problem, server in one response gives me 11 thousands objects, and my memory jump to 1000, is there any ways to fix this except of changing the response objects count? "},"comment":{"url":"https://api.github.com/repos/EasyMapping/EasyMapping/issues/comments/147797199","html_url":"https://github.com/EasyMapping/EasyMapping/issues/116#issuecomment-147797199","issue_url":"https://api.github.com/repos/EasyMapping/EasyMapping/issues/116","id":147797199,"user":{"login":"Sh1mor1nka","id":2759167,"avatar_url":"https://avatars.githubusercontent.com/u/2759167?v=3","gravatar_id":"","url":"https://api.github.com/users/Sh1mor1nka","html_url":"https://github.com/Sh1mor1nka","followers_url":"https://api.github.com/users/Sh1mor1nka/followers","following_url":"https://api.github.com/users/Sh1mor1nka/following{/other_user}","gists_url":"https://api.github.com/users/Sh1mor1nka/gists{/gist_id}","starred_url":"https://api.github.com/users/Sh1mor1nka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sh1mor1nka/subscriptions","organizations_url":"https://api.github.com/users/Sh1mor1nka/orgs","repos_url":"https://api.github.com/users/Sh1mor1nka/repos","events_url":"https://api.github.com/users/Sh1mor1nka/events{/privacy}","received_events_url":"https://api.github.com/users/Sh1mor1nka/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T18:02:31Z","updated_at":"2015-10-13T18:02:31Z","body":"I think i have memory problems because i use ```arrayOfObjectsFromExternalRepresentation```, i keep all references in array until it will be returned."}}