SlideShare a Scribd company logo
1 of 3
Download to read offline
TIPS FOR CORE DATA
• Store big files (>1MB) externally 	

• Store intermediate files (>=100kb < 1MB) in a relationship. 	

• Store small files (<100kb) internally	

• Entity inheritance can be a performance hinderance	

• Search properties can be helpful	

• Follow object model	

• Separate commonly used data form the rest
• Retrieve NSManagedObjectIDs and retrieve properties from that
[fetchRequest setResultType:NSManagedObjectIDResultType];	

• Retrieve only property values	

• Use batch sizes	

• Prefetch relationships	

• Perform fetches on background thread

More Related Content

What's hot

Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorialsMongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorialsSpringPeople
 
Introduction to mongo db
Introduction to mongo dbIntroduction to mongo db
Introduction to mongo dbRohit Bishnoi
 
FITC presents: Mobile & offline data synchronization in Angular JS
FITC presents: Mobile & offline data synchronization in Angular JSFITC presents: Mobile & offline data synchronization in Angular JS
FITC presents: Mobile & offline data synchronization in Angular JSFITC
 
iOSDevCamp 2011 Core Data
iOSDevCamp 2011 Core DataiOSDevCamp 2011 Core Data
iOSDevCamp 2011 Core DataChris Mar
 
Advanced D3 Charting
Advanced D3 ChartingAdvanced D3 Charting
Advanced D3 Chartingdcryan
 
Starting with MongoDB
Starting with MongoDBStarting with MongoDB
Starting with MongoDBDoThinger
 
Infinum iOS Talks S01E02 - Things every iOS developer should know about Core ...
Infinum iOS Talks S01E02 - Things every iOS developer should know about Core ...Infinum iOS Talks S01E02 - Things every iOS developer should know about Core ...
Infinum iOS Talks S01E02 - Things every iOS developer should know about Core ...Denis_infinum
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for BeginnersEnoch Joshua
 
U C2007 My S Q L Performance Cookbook
U C2007  My S Q L  Performance  CookbookU C2007  My S Q L  Performance  Cookbook
U C2007 My S Q L Performance Cookbookguestae36d0
 
Mongo db – document oriented database
Mongo db – document oriented databaseMongo db – document oriented database
Mongo db – document oriented databaseWojciech Sznapka
 

What's hot (17)

Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorialsMongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
 
Introduction to mongo db
Introduction to mongo dbIntroduction to mongo db
Introduction to mongo db
 
Mongo db nosql (1)
Mongo db nosql (1)Mongo db nosql (1)
Mongo db nosql (1)
 
Mongo DB
Mongo DB Mongo DB
Mongo DB
 
Mongo DB
Mongo DBMongo DB
Mongo DB
 
FITC presents: Mobile & offline data synchronization in Angular JS
FITC presents: Mobile & offline data synchronization in Angular JSFITC presents: Mobile & offline data synchronization in Angular JS
FITC presents: Mobile & offline data synchronization in Angular JS
 
Python Files
Python FilesPython Files
Python Files
 
iOSDevCamp 2011 Core Data
iOSDevCamp 2011 Core DataiOSDevCamp 2011 Core Data
iOSDevCamp 2011 Core Data
 
Mongodb
MongodbMongodb
Mongodb
 
Introduction to mongo db
Introduction to mongo dbIntroduction to mongo db
Introduction to mongo db
 
Advanced D3 Charting
Advanced D3 ChartingAdvanced D3 Charting
Advanced D3 Charting
 
Starting with MongoDB
Starting with MongoDBStarting with MongoDB
Starting with MongoDB
 
Infinum iOS Talks S01E02 - Things every iOS developer should know about Core ...
Infinum iOS Talks S01E02 - Things every iOS developer should know about Core ...Infinum iOS Talks S01E02 - Things every iOS developer should know about Core ...
Infinum iOS Talks S01E02 - Things every iOS developer should know about Core ...
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for Beginners
 
NoSQL with MongoDB
NoSQL with MongoDBNoSQL with MongoDB
NoSQL with MongoDB
 
U C2007 My S Q L Performance Cookbook
U C2007  My S Q L  Performance  CookbookU C2007  My S Q L  Performance  Cookbook
U C2007 My S Q L Performance Cookbook
 
Mongo db – document oriented database
Mongo db – document oriented databaseMongo db – document oriented database
Mongo db – document oriented database
 

Viewers also liked (18)

Linking
LinkingLinking
Linking
 
Loops
LoopsLoops
Loops
 
Kahwin dah edit
Kahwin dah editKahwin dah edit
Kahwin dah edit
 
Kahwin dah edit
Kahwin dah editKahwin dah edit
Kahwin dah edit
 
Nota smart tkt1
Nota smart tkt1Nota smart tkt1
Nota smart tkt1
 
Lesson 4 maya 4
Lesson 4 maya 4Lesson 4 maya 4
Lesson 4 maya 4
 
Strings
StringsStrings
Strings
 
Kahwin dah edit
Kahwin dah editKahwin dah edit
Kahwin dah edit
 
Lesson plan 1 mata 4
Lesson plan 1 mata 4Lesson plan 1 mata 4
Lesson plan 1 mata 4
 
Mayores, Aaron James C. (resume) (1)
Mayores, Aaron James C. (resume) (1)Mayores, Aaron James C. (resume) (1)
Mayores, Aaron James C. (resume) (1)
 
Saidatina aishah
Saidatina aishahSaidatina aishah
Saidatina aishah
 
Human-machine Coexistence in Groups
Human-machine Coexistence in GroupsHuman-machine Coexistence in Groups
Human-machine Coexistence in Groups
 
Web design
Web designWeb design
Web design
 
Towards Hybrid and Diversity-Aware Collective Adaptive Systems
Towards Hybrid and Diversity-Aware Collective Adaptive SystemsTowards Hybrid and Diversity-Aware Collective Adaptive Systems
Towards Hybrid and Diversity-Aware Collective Adaptive Systems
 
Dr. Deepthi
Dr. DeepthiDr. Deepthi
Dr. Deepthi
 
Saudatina aishah
Saudatina aishahSaudatina aishah
Saudatina aishah
 
iOS 10 & XCode 8, Swift 3.0 features and changes
iOS 10 & XCode 8, Swift 3.0 features and changesiOS 10 & XCode 8, Swift 3.0 features and changes
iOS 10 & XCode 8, Swift 3.0 features and changes
 
iOS App Architecture
iOS App ArchitectureiOS App Architecture
iOS App Architecture
 

Core Data Optimization Tips

  • 2. • Store big files (>1MB) externally • Store intermediate files (>=100kb < 1MB) in a relationship. • Store small files (<100kb) internally • Entity inheritance can be a performance hinderance • Search properties can be helpful • Follow object model • Separate commonly used data form the rest
  • 3. • Retrieve NSManagedObjectIDs and retrieve properties from that [fetchRequest setResultType:NSManagedObjectIDResultType]; • Retrieve only property values • Use batch sizes • Prefetch relationships • Perform fetches on background thread