CoreData: Fetch count of to-many relationship with NSDictionaryResultType

前端 未结 2 1829
北海茫月
北海茫月 2020-12-18 08:41

I have a big list of objects in Core Data (about 50 000 and periodically increasing). I fetch it with the following request:

NSFetchRequest *fetchRequest = [         


        
2条回答
  •  Happy的楠姐
    2020-12-18 09:19

    If you don't want to fetch all songs, but want to fetch their count number, maybe you should add a new property count, which will you increase as you add new song

提交回复
热议问题