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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:42:38+00:00 2026-05-10T16:42:38+00:00

My app keeps track of the state of about 1000 objects. Those objects are

  • 0

My app keeps track of the state of about 1000 objects. Those objects are read from and written to a persistent store (serialized) in no particular order.

Right now the app uses the registry to store each object’s state. This is nice because:

  • It is simple

  • It is very fast

  • Individual object’s state can be read/written without needing to read some larger entity (like pulling out a snippet from a large XML file)

  • There is a decent editor (RegEdit) which allow easily manipulating individual items

Having said that, I’m wondering if there is a better way. SQLite seems like a possibility, but you don’t have the same level of multiple-reader/multiple-writer that you get with the registry, and no simple way to edit existing entries.

Any better suggestions? A bunch of flat files?

  • 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. 2026-05-10T16:42:38+00:00Added an answer on May 10, 2026 at 4:42 pm

    If you do begin to experiment with SQLite, you should know that ‘out of the box’ it might not seem as fast as you would like, but it can quickly be made to be much faster by applying some established optimization tips:

    SQLite optimization

    Depending on the size of the data and the amount of RAM available, one of the best performance gains will occur by setting sqlite to use an all-in-memory database rather than writing to disk.

    For in-memory databases, pass NULL as the filename argument to sqlite3_open and make sure that TEMP_STORE is defined appropriately

    On the other hand, if you tell sqlite to use the harddisk, then you will get a similar benefit to your current usage of RegEdit to manipulate the program’s data ‘on the fly.’

    The way you could simulate your current RegEdit technique with sqlite would be to use the sqlite command-line tool to connect to the on-disk database. You can run UPDATE statements on the sql data from the command-line while your main program is running (and/or while it is paused in break mode).

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

Sidebar

Related Questions

I'm trying to keep track of the state in this app using Backbone.js: I
My app keeps track of restaurant servers' shift sales to help them budget. In
I am working on an app that keeps track of user's location at a
I am designing a simple expenses app which keeps track of expenses I do
I'm writing an web-app that keeps track of deadlines. With this app you have
I am working on an app that keeps track of travelling times Consider the
I am looking to keep track of people in my iPhone app - either
Im not sure why, but my app all of a sudden keeps force closing
I am writing a simple app to keep track of the periods when my
I need to implement a finite-state-machine in order to keep track of a few

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.