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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:24:35+00:00 2026-05-20T22:24:35+00:00

Imagine to have a Desktop application – could be best described as record keeping

  • 0

Imagine to have a Desktop application – could be best described as record keeping where the user inserts/views the records – that relies on a DB back-end which will contain large objects’ hierarchies and properties. How should data retrieval be handled?

Should all the data be loaded at start-up and stored in corresponding Classes/Structures for later manipulation or should the data be retrieved only at need, stored in mock-up Classes/Structures and then reused later instead of being asked to the DB again?

As far as I can see the former approach would require a bigger memory portion used and possible waiting time at start-up (not so bad if a splash screen is displayed), while the latter could possibly subject the user to delays during processing due to data retrieval and would require to perform some expensive queries on the database, whose results and/or supporting data structures will most probably serve no purpose once used*.

Something tells me that the solution lies on an in-depth analysis which will lead to a mixture of the two approaches listed above based on data most frequently used, but I am very interested in reading your thoughts, tips and real life experiences on the topic.

For discussion’s sake, I’m thinking about C++ and SQLite.

Thanks!

*assuming that you can perform on Classes/Objects faster operations rather than have to perform complicated queries on the DB.

EDIT

Some additional details:

  • No concurrent access to the data, meaning only 1 user works on the data which is stored locally.
  • Data is sent back depending on changes made humanly – i.e. with low frequency. This is not necessarily true for reading data from the DB, where I can expect to have few peaks of lots of reads which I’d like to be fast.
  • What I am most afraid of is the user getting the feeling of slowness when displaying a complex record (because this has to be read in from the DB).
  • 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-20T22:24:36+00:00Added an answer on May 20, 2026 at 10:24 pm

    Use Lazy Load and Data Mapper (pg.165) patterns.

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

Sidebar

Related Questions

Imagine I have a process that starts several child processes. The parent needs to
Imagine I have the following: inFile = /adda/adas/sdas/hello.txt # that instruction give me hello.txt
I'm building a desktop application right now that presents its human-readable output as XHTML
Imagine I have the coordinate of 4 points that form a polygon. These points
Imagine I have the following SQL query: SELECT id,name FROM user WHERE id IN
Imagine you have 100 tweens. Each tween is simply an element (circle) that goes
So I have a desktop application designed using the MVC pattern inspired by this
Imagine you have a list of user selections. Depending on what selections the user
Imagine I have a table called item that has a column called price. In
Imagine we have a program trying to write to a particular file, but failing.

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.