user3708642
user3708642

Reputation: 124

Core Data database storage properly

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

Answers (1)

LyricalPanda
LyricalPanda

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

Related Questions