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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:59:12+00:00 2026-06-15T04:59:12+00:00

I am developing an application on Android using SQLite. I am quite new to

  • 0

I am developing an application on Android using SQLite. I am quite new to SQLite so I want to ask about a design choice.

If you want to pass an object (which represents a row in the DB) from one activity to another, which one of the below is faster and/or resource efficient?

  • Serializing the object as JSON, sending with intent and deserializing on the other end
  • Sending only record ID and pulling the record from the DB again in the other activity

Either case, what would be the performance difference between these two choices?

  • 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-15T04:59:13+00:00Added an answer on June 15, 2026 at 4:59 am

    It really does depend on the size of your row. If it’s relatively small (a handful of primitives) passing the serialized data around isn’t a big deal, although you might want to use something that’s a bit lighter weight than JSON. If you have a large set of data (blobs, etc), then the performance hit from fetching the row off disk vs. serializing and deserializing is probably even or less. Ideally, you’d fetch the data only once and store it in a singleton, to be accessed by different activities, likely as POJOs.

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

Sidebar

Related Questions

I wanna ask guide about android application Compatibility,I am developing an application using Android
I am developing an Android application using SQLite as backend. I want to make
I'm developing an Android application which sends content to a server using rest web
I'm developing Android application using third party libraries (Twitter4j). I want to be able
I'm developing an Android application and i'm using a Sqlite database to store some
Im developing a mobile application using Android 2.3 Here i want to capture the
I'm developing an Android application that makes a Query using Activity.managedQuery() , which takes
I'm developing an Android application and using SQLite. I would like to access the
Hi I am developing an application in android using Java.I have added a new
Hi I am developing Android application using Titanium.I want to change value of particular

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.