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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:48:31+00:00 2026-05-23T08:48:31+00:00

Hi everyone I’m trying to think about how to get some database designs done

  • 0

Hi everyone I’m trying to think about how to get some database designs done for android and i’m thinking if the following is possible.

I’m trying to create a company-employee database where a company has a many-to-many relationship with employees which in turn has a one-to-one relationship with its employee details , depending which company he’s in. Basically like this

  1. Company to employee : Many to many
  2. Employee to employee_details : One to one

So the issue now is that I’m thinking of using an android device to browse the information which i’m thinking how I should populate the information ? Should I :

  1. be having the ORM for the relationship above handled by the webserver and handling each call from the device as a individual httpConnect call? or
  2. should I be having the device synchronize with the webserver everytime by downloading the information, and have the android device handle the relationships ?

I want the device to be able to browse the information without lag (which makes it seem method 2 should be the proper choice since it synchronizes the whole database into the phone and browsing is using the sqlite). But what are the choices out there ?

Any tips and comments ? Hope this is not confusing ! Thanks !

  • 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-23T08:48:31+00:00Added an answer on May 23, 2026 at 8:48 am

    Even the second option can look like a better way it can be much more complex and the synchronization can takes a long time for larger datasets so you will not have a lag when browsing information but an user can wait for a long time before the application even starts (imagine if user is on 3G or even worse EDGE). Generally second solution have these challenges:

    • How many information to pull from the database? All? Only some companies? Only some employees?
    • How to update stored state? Reload everything? Reload only differences? How to find differences? Will it require push notifications?
    • How often to do reload? When to do initial load?

    This is for reading. If you also want some modification on mobile device you can be sure that whole process will be even worse because you must avoid data modification collisions when synchronizing states from multiple devices back to the main database.

    The simple way to start is using some combination of both approaches:

    • No local database
    • Data are loaded on demand when needed. For example when user opens the app you will load first 50 companies. When he request more of them you will load another 50 or you will load companies satisfying some search criteria. When user opens comapany you will show first 50 employees and you will work with them in the same way as with companies, same with details.
    • Modification always means persisting changes to the real database
    • If you don’t need always fresh data you can implement some local cache and cache some data for few minutes.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

everyone. I'm trying to get data from some page, it's updated using javascript. First,
everyone. I am trying to create a database in which I can store pictures
everyone! new to here and been pondering about this myself for some times with
everyone. I am an experienced C programmer trying to get adjusted to C++. I
Everyone likes to talk about reusability. Where I work, whenever some new idea is
everyone. Can someone share some links on articles about back end caching and fragment
everyone, I have some question about C++, what do You actually prefer to use
Everyone, every blog is talking about HTML 5 and giving solution to use HTML
everyone. I have some labels that I draw them in the xib file, and
Everyone, I am a newbie to android development. Now I have a question that

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.