Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3933460
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:36:11+00:00 2026-05-19T23:36:11+00:00

For persistent storage of data is there any distinct advantage of using a SQLlite

  • 0

For persistent storage of data is there any distinct advantage of using a SQLlite database over SharedPreferences or vice versa? Currently my application data is only a couple of kilobytes in size, though it could conceivably rise to ten times that size in the future. I can’t find anywhere that states how much storage is available using SharedPreferences but would imagine this would be one limitation of using it? Is there any difference in speed between the two methods? I’m looking to weigh up the pros and cons of those two storage methods.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:36:12+00:00Added an answer on May 19, 2026 at 11:36 pm

    Off the top of my head:

    SharedPreferences:

    Pro:

    • Lightweight
    • Quick and easy to use
    • Easy to debug
    • Config file can be edited by hand if need be

    Con:

    • Slow when dealing with lots of data
    • Not helpful when the data is more than a simple key/value affair
    • Entire file needs to be read and parsed to access data
    • Takes up more space, each entry has a considerable amount of ASCII data around it, and all the data itself is ASCII too.

    SQLite:

    Pro:

    • Scales nicely
    • Changes don’t require rewriting the entire data file from scratch
    • Powerful queries

    Con:

    • More code to write
    • More heavyweight (code and memory), overkill when dealing with a little bit of data
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any Best Practice approach to storing persistent static data for iPhone apps?
I’ve developed an entirely in-memory application using .NET. Data is loaded from persistent storage
We're using RavenDB saga storage, but the saga data isn't being persisted after the
I have developed a blackberry app, in which I am using Persistent Storage to
What type of persistent data storage would be easier to encrypt on the iPhone-
I need a persistent storage in Java for certain (possibly large) data structures, such
Possible Duplicate: Persistent Data Storage in Android Development I want to implement persistent storage
Possible Duplicate: Persistent Data Storage in Android Development I want to implement persistent storage
Im working on using HTML5 persistent storage on an existing application used for the
Is there a more appropriate/efficient data structure for a transaction queue than using a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.