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 8406547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:08:21+00:00 2026-06-09T23:08:21+00:00

I am new to Android Application Development and a new member at stackoverflow. I

  • 0

I am new to Android Application Development and a new member at stackoverflow. I am currently trying to design a recipe application. I have decided upon the features of the app and the scope it will cover. The scope is very vast for me in terms of covering all the recipes from all over the world. I am to deal with a lot of data in this process.

I am currently trying to figure a good and efficient way of handling the data in my app. So far, as per what I have read in different forums, I believe that I have two options in terms of a database choice : 1) SQLite 2) Database on remote server (MySql/Postgre)

Following are some of the thoughts that have been going on in my mind when it comes to taking a decision between the two :

1) SQLite : This could be a good option but would be slow as it would need to access the file system. I could eliminate the slowness by performing DB data fetch tasks in the AsyncTask. But then there could be a limitation of the storage on different phones. Also I believe using SQLite would be easier as compared to using a remote DB.

2) Remote Database : The issue that I can see here is the slowness with multiple DB requests coming at the same time. Can I use threads here in some way to queue multiple requests and handle them one by one ? Is there an efficient way to do this.

Also I have one more question in terms of the formatting of my data once I pull it out from the above DB’s. Is there a way I could preserve the formatting of my data ?

I would be more than thankful if someone could share their knowledgeable and expert comments on the above scenario. Also this is not a homework for me and I am not looking for any ready made code solutions. I am just looking for hints/suggestions that would help me clear my thoughts and help me take a decision. I have been looking for this for sometime now but was not able to find concrete information. I hope I will get some good advice here from the experienced people who might have encountered similar situation.

Thanks for reading this long post.

  • 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-06-09T23:08:22+00:00Added an answer on June 9, 2026 at 11:08 pm

    What about combining both approaches?

    • A local SQLite database that has the least recently used receipes so you don’t need network all the time. Network is way slower than accessing the filesystem.

    • Some remote database accessed via some HTTP interface where you can read / write the whole database. And if you want users to be able to add receipes for other users to see you’ll need an external database anyways.

    SQLite : This could be a good option but would be slow as it would need to access the file system.

    Accessing a local database is pretty fast, 5ms or so if it’s just a simple read only query on a small database.

    But then there could be a limitation of the storage on different phones

    Depends on your definition of huge database. It is okay if it is only 2MB which would be enough to store lots of text-only receipes.

    Also I believe using SQLite would be easier as compared to using a remote DB.

    Yes, Android has a nice built-in SQLite API but no remote database API. And you don’t need to setup a database server & interface.

    The issue that I can see here is the slowness with multiple DB requests coming at the same time.

    A decent database server can handle thousands of requests. Depends on your server hardware & software. https://dba.stackexchange.com/ should have more info on that. Required performance depends on how much users you have / expect.

    I’d suggest a simple REST interface to your database since it’s pretty lightweight but does not expose your database directly to the web. There are tons of tutorials and books about creating such interfaces to databases. There are even hosted database services like nextDb that do most of the work for you.

    Is there a way I could preserve the formatting of my data ?

    You could store HTML formatted data in your database and display it in a WebView or a TextView (via Html#fromHtml()) – both can display formatted text.

    Databases don’t care what type of text you store, for transfer over the internets you may need to encode the text so it does not interfere with the transport formatting (XML, JSON, …).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Android Development and am currently trying to develop my first application
I'm new to Android application development and I'm currently experimenting with various UI ideas.
I am new in Android application development, but I have programming knowledge in iOS.
I am new to android application development. Whenever I run a new app, after
I want to start android tablet application development. i have created a new avd
I am new to the android application development, I designed an app, which is
I'm new in android development. I have been trying to start a new activity
I'm new to Android development. I have an application that allows the user to
I am New Android development. In My application I have two ArrayLists. One ArrayList
I am new to android application development. I need a solution for setting random

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.