App crash when trying to load a large amount off data into my app

前端 未结 2 1562
無奈伤痛
無奈伤痛 2021-01-20 04:08

I am trying to load a JSON of 40 000+ records into my Realm Database. Here is my function

AFJSONRequestOperation *operation = [[AFJ         


        
2条回答
  •  情话喂你
    2021-01-20 04:56

    Wrap loop's body in @autoreleasepool

    Also copying the same JSON twice seems redundant.

提交回复
热议问题