nsfetchrequest
Core Data search optimization
I\'m working on a search feature in one of my Core Data based apps and I\'m trying to gather everyone\'s tips on search optimization to get it as fast as I possibly can. The search needs to be fast en[详细]
2023-03-20 22:38 分类:问答Anyone know how to make the table index the first 4 chars of my core data name attribute?
I\'m working on a coin app. Coins are presented to the user in a tableview, managed by Core Data. All the coin names begin with either \"19\" or \"20\". When I implement a section index on the table[详细]
2023-03-17 11:44 分类:问答How to link existing values in a 1 to many relationship in core data?
I am trying to link a value that\'s already in category to the wod entity. Since I do want to call a new record for each record of wod for a category. Not sure how to do this. I was thinking of using[详细]
2023-03-13 17:29 分类:问答NSFetchRequest with NSPredicate sometimes throws NSInvalidArgumentException
This one is baffling me: I have a core data set that I search/filter using the following code: NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];[详细]
2023-03-08 20:25 分类:问答Fetching lots of objects with Core Data, what are the consequences?
Does it hurt to execute an NSFetchRequest that retrieves a lot of objects, maybe around 3 ~ 5K? I understand Core Data uses something called \'faulting\' that ensures objects are not in memory until t[详细]
2023-03-03 11:43 分类:问答If statement on FetchRequest
How do I make it so I only fetch results with the indicator == 1. (I have the indicator hooked up to a UISwitch on another view). so I want a table of titles, but only if the indicator is 1.[详细]
2023-03-01 16:14 分类:问答Core Data: Sort by Relationship's Attribute
I\'m building an open-source clone of iPhone\'s native Messages app called AcaniChat on GitHub. I have a Conversation entity and a Message entity with a sentDate attribute. Each Conversation can have[详细]
2023-02-28 14:15 分类:问答Query regarding fetchrequest for coreData
I have a Client Entity and it has a to many relationship (entries) with Entry entity. Client Entity also has a to many relationship with an Invoice Entity (invoices).[详细]
2023-02-24 22:54 分类:问答How to use the "IN" Operator with a Predicate
How to write NSPredicate to fetch the rows that 开发者_JAVA技巧matches with values in the array? E.g:[详细]
2023-02-22 02:09 分类:问答NSPredicate compare dates in CoreData
I have a managed object with two dates: dateOne and dateTwo and I want to retrieve the dates where dateTwo is older than dateOne.[详细]
2023-02-21 03:52 分类:问答