• schleep (8/27/2015)


    You're now technical talking about *bi-temporal support*, not just temporal. As in - in order to provide the correct history in your OLTP, you will need to keep track of the effectivity of the change (when does the change become effective) and the date you specifically processed the change.

    When you say "date ... processed the change", do you mean the date the change comes into effect, or the date the rows were inserted with a future effective/expiry date?

    I would caution against trying to run OLTP against a true SCD 2 setup. As in - it's certainly okay to record changes you make to the "live" table and convey those in SCD form to a table with a similar layout in the same local DB. But keeping the very high level of changes inside of the operational 9while maintaining bi-temporal support AND tracking whether these changes are in flight or final, etc...) is going to thoroughly thrash your data access.

    That's what I'm afraid of.

    there really isn't a concept of "update" or "delete" in SCD - *new* entries are created any time ANY change occurs. the only update tolerated would be the part that expires the previous version of the record you just updated.

    Hadn't thought of that: it might be the proverbial nail in the coffin. We rely on single row updates to make n rows "visible", where 1 > n > ~4600.

    This would result in n updates + n inserts.

    Ugh. More thought required.

    Thanks Matt

    PS: Always loved your sig line. That sign -- without the exceptions -- hangs on my wall. 🙂 It's generally ignored anyway.

    It sounds to be that the date the change was physically processed AND the effective date are both required. By allowing future date changes you would need to account for BOTH dates (thus bi-temporal).

    Example: If I were a travel company and I gave you a quote today on a flight to Aruba in 30 days from now for 600$, and a hurricane comes through tomorrow that changes that future price to 1500 before I've made my decision (half the runways are destroyed so only some flights are allowed in), you would need BOTH dates in order to be able to track your quotation changes in SCD 2 form.

    ----------------------------------------------------------------------------------
    Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?