in Education by
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question (Not related to versioning the database schema) Applications that interfaces with databases often have domain objects that are composed with data from many tables. Suppose the application were to support versioning, in the sense of CVS, for these domain objects. For some arbitry domain object, how would you design a database schema to handle this requirement? Any experience to share? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Think carefully about the requirements for revisions. Once your code-base has pervasive history tracking built into the operational system it will get very complex. Insurance underwriting systems are particularly bad for this, with schemas often running in excess of 1000 tables. Queries also tend to be quite complex and this can lead to performance issues. If the historical state is really only required for reporting, consider implementing a 'current state' transactional system with a data warehouse structure hanging off the back for tracking history. Slowly Changing Dimensions are a much simpler structure for tracking historical state than trying to embed an ad-hoc history tracking mechanism directly into your operational system. Also, Changed Data Capture is simpler for a 'current state' system with changes being done to the records in place - the primary keys of the records don't change so you don't have to match records holding different versions of the same entity together. An effective CDC mechanism will make an incremental warehouse load process fairly lightweight and possible to run quite frequently. If you don't need up-to-the minute tracking of historical state (almost, but not quite, and oxymoron) this can be an effective solution with a much simpler code base than a full history tracking mechanism built directly into the application.

Related questions

0 votes
    Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 18, 2022 in Education by JackTerrance
0 votes
    What VM series should you consider if you want to host applications that require high-performance IO for persisted data? 1. G-series 2. A-series 3. DS-series 4. D-series...
asked Sep 23, 2021 in Technology by JackTerrance
0 votes
    What VM series should you consider if you want to host applications that require high-performance IO for persisted data? G-series A-series DS-series D-series...
asked Aug 28, 2021 in Technology by JackTerrance
0 votes
    How to View the change history of a file using Git versioning?...
asked Jan 8, 2021 in Technology by JackTerrance
0 votes
    Knowing that I can version js and css files like Option 1: myJavaScript.js?v=#myVersionNumber# myCSS.css?v= ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 23, 2022 in Education by JackTerrance
0 votes
    If a student gains unauthorized access to the student database and modifies his/her marks, what type of violation would it be? (1)Confidentiality (2)Both the options (3)Integrity...
asked Mar 22, 2021 in Technology by JackTerrance
0 votes
    ______________________ lists all the available database objects.Single choice. Tabs Title bar Navigation pane Groups Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    A ________ is a logical grouping of database objects, usually to facilitate security, performance, or the ... Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    What are the different types of database objects?...
asked Dec 18, 2020 in Technology by JackTerrance
0 votes
    What are the various Oracle database objects?...
asked Dec 18, 2020 in Technology by JackTerrance
0 votes
    How would you design an NFT marketplace?...
asked Jan 21, 2023 in Technology by JackTerrance
0 votes
    What would be your preferred way to concatenate strings from a sequence such that between every two consecutive ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 25, 2022 in Education by JackTerrance
0 votes
    Service Oriented Architecture seems to be more and more of a hot quote these days, but after asking around ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 24, 2022 in Education by JackTerrance
0 votes
    I don't develop too many desktop / Windows Forms applications, but it had occurred to me that there ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 23, 2022 in Education by JackTerrance
...