Reputation: 124
I've been playing around with Apple's new swift language, and in my application I'm looking to store a thousand small files in the Core Data database.
What is the proper way to do this? For small binary files, is it safe to put them all in Core Data, or should they be stored elsewhere and use the database to keep track of their meta data?
Thanks for the help.
Upvotes: 2
Views: 191
Reputation: 1414
How much storage does the thousand small files come out to be? Honestly I would store the files in the NSBundle and have links to their relative filepath (+ meta data) in CoreData. That way you're not bloating CoreData with all the irrelevant file data.
Upvotes: 1