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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:56:18+00:00 2026-05-14T04:56:18+00:00

This is a fairly common problem, it probably has a name, I just don’t

  • 0

This is a fairly common problem, it probably has a name, I just don’t know what it is.

A.) User sees obscure piece of information in Row B of L_OBSCURE_INFO displayed on some screen at a certain point. It is in table L_Obscure_info.

B.) Under certain circumstances we want to correctly delete data in L_OBSCURE_INFO. Unfortunately, nobody accounted for the fact that the user might want to backtrack and see some random piece of information that was most recently in L_OBSCURE_INFO.

C.) The system is enormous and L_OBSCURE_INFO is used all the time. You have no idea what the ramifications are of implementing some kind of hack and whatever you do, you don’t want to introduce more bugs.

I think the best approach would be to create an L_OBSCURE_INFO_HISTORY table and record a record in there every time you change data. But god help your ensuring it’s accurate in this system where L_OBSCURE_INFO is being touched everywhere and you don’t have time to implement L_OBSCURE_INFO_HISTORY.

Is there a particularly easy, clever design solution for this kind of problem — basically an elegant database hack? If not, is this kind of design problem under a particular class of problems or have a name?

  • 1 1 Answer
  • 3 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-14T04:56:18+00:00Added an answer on May 14, 2026 at 4:56 am

    If seeing the history of deletes (and I would assume updates) is the requirement, the history table you described is likely your best option.

    If, as you say, the table is “being touched everywhere” and you can’t control writing of the history via application code, you will have to implement a database trigger that essentially snapshots the row each time a change is made (or only deletes, if that is the limit of your need).

    Another option might be to add an “is_active” column in the table, and instead of allowing deletes, allow users to inactivate rows. This is effectively a “soft delete”, which is not always a good practice, because filtering out inactive records in every query is a pain.

    If you DO have the option of implementing a solution in application code (i.e. no one is touching data except through the application), you could implement a logging mechanism to record the state of a row that is about to get deleted.

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

Sidebar

Related Questions

I know this is a fairly common error with URL encoding. The problem I
This is a fairly common problem to which I have yet to find an
This is a slightly original variation on a common problem. I have a fairly
Although this is a fairly common problem, I am struggling with what the best
Hey everyone, I am pretty sure this is a fairly common problem. So in
Arg, looks like this is a fairly common problem but I can't seem to
I'm wondering if someone could help guide the approach to this fairly common problem:
This seems to be a fairly common problem but none of the the solutions
This seems to be a fairly common problem, but the solutions that I have
I feel like this is a fairly common problem, but I cannot find the

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.