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

  • Home
  • SEARCH
  • 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 8510731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:47:05+00:00 2026-06-11T03:47:05+00:00

Starting out on a project that will rely on sqlite for persistence, I’ve be

  • 0

Starting out on a project that will rely on sqlite for persistence, I’ve be trying to better understand implications of using a pre-backed db vs. one generated programmatically. So far I’m leaning toward the programmatic approach per this question and the iosched app db example.

And that’s all fine, but at this point I’m not sure I could succinctly articulate why that’s a better approach, especially long term.

PS: I ruled out ormlite since domain classes are in a jar lib, already jpa annotated in 2 other apps.

  • 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-11T03:47:07+00:00Added an answer on June 11, 2026 at 3:47 am

    Pre-baked is ok but it introduces a couple of processes that are less than ideal. Firstly you still have to create the database, presumably in an IDE that supports table creation, column entry etc etc. Then you have to save that database in your project and implement the code to instantiate it as your application data base.

    This is a great first step for people that are just starting and can later get to grips with the more detailed verbose process of doing it through code.

    This process however presents a number of issues. Firstly you’ve lost the steps to create the database, unless you’ve saved sql queries to create the tables. Still they’re not a part of the project that you can tweak and re-run.

    As mentioned in the other posts you have a duplicate database consuming space. The database is also much less flexible to accomodate changes and updates.

    If your a fan of unit testing then with a coded solution you could look at running tests on the DB generation, that could extend nicely to how you manage database migrations.

    So code whilst initially long winded is ultimately more flexible, can be more easily unit tested, ultimately quicker to adopt more complex changes.

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

Sidebar

Related Questions

I am starting out on a project that will involve ASP.NET MVC using a
So I am starting out on company project that will have several components: At
I'm starting a project that will be public facing using asp.net mvc. I know
Background: I'm working on a project that's starting out with a large SQL dump
I'm starting out with backbone and I'm trying to create a simple view that
I'm currently starting a new project that will display user distrubuted data links in
Has anyone done something like this? How? I'm just starting a project that will
I'm just starting out using Subversion on a C# project. I am working on
I'm starting a new project and I'm trying to figure out what technologies I
I am starting out a new project that involves the use of JSF 2.0.

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.