Is there a reason to store, let’s say, about a thousand strings with a SQLite database over a NSArray saved with NSUserDefaults? What is the advantage to having a database? Thanks for your help!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Storing 1000 strings in NSUserDefaults as an array is no big deal. One advantage that using SQL Lite will give you is the ability to index your collection for fast searches. And of course that benefit just keeps on growing as your data collection increases in size.