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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:23:41+00:00 2026-06-12T06:23:41+00:00

Imagine I’m creating a very simple bug tracking system. I have a list of

  • 0

Imagine I’m creating a very simple bug tracking system. I have a list of bugs, which in the database currently looks something like this:

ID  Title           Details         CreatedDate
1   someTitle       someDetails     26/09/2012
2   otherTitle      otherDetails    27/09/2012

I’m looking to add versioning to this table, so that the history of each individual bug is stored. I was thinking of something like this:

ID  BugID   CreatedDate
1   1       26/09/2012
2   3       26/09/2012


BugID   Title           Details           RevisionGroup
1       someTitle       someDetails       1
2       otherTitle      otherDetails      2
3       otherTitle      changedDetails    2

Here I have the list of bugs in the first table, which links to the most current version of the bug in the second table. The revisionGroup column isn’t linked to anything, I’d just be taking the maximum value currently there and incrementing when needing to insert a new bug.

My database design is pretty shakey, but I’ve thought about this and believe it should work. Does this look like the best way to go about things? Is there a better way?

  • 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-12T06:23:43+00:00Added an answer on June 12, 2026 at 6:23 am

    Nice question format 🙂

    Well, since you just want the latest bug, why not put a timestamp instead of a version.
    What it will do is save you one extra query that you would do when you enter a new bug and look for the last version. Unless your business rules states the requirement of the version number. I believe you said that is not the case then I dont see any other problem with your current design.

    When designing a database, always remember… Calculation with a processor is much faster than any disk I/O. You should avoid any extra read/write if possible and avoidable.

    Good luck!

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

Sidebar

Related Questions

Imagine I've got a database with lots of data, from which users can search.
Imagine you have class A which has code which runs as method M. And
Imagine the following scenario: I have a list of Labels stored in a table
Imagine I have an function which goes through one million/billion strings and checks smth
Imagine that you have a simple site with only 2 pages: login.aspx and secret.aspx.
Imagine you have a function tree which has a number of nodes which can
Imagine that you have to query the database in order to retrieve some data
Imagine you have a list of user selections. Depending on what selections the user
Imagine I have following table: NAME DATE OTHER_CONTANT 'A' '2012-06-05' 'baz' 'A' '2012-06-04' 'bar'
Imagine you have two views with code like the following: controller_a/a.html.erb <%= content_tag(:div) do

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.