Which ORM framework can best handle an MVCC database design?

前端 未结 6 921
北海茫月
北海茫月 2021-02-06 02:30

When designing a database to use MVCC (Multi-Version Concurrency Control), you create tables with either a boolean field like \"IsLatest\" or an integer \"VersionId\", and you n

6条回答
  •  礼貌的吻别
    2021-02-06 03:09

    What we do, is just use a normal ORM ( hibernate ) and handle the MVCC with views + instead of triggers.

    So, there is a v_emp view, which just looks like a normal table, you can insert and update into it fine, when you do this though, the triggers handle actually inserting the correct data into the base table.

    Not.. I hate this method :) I'd go with a stored procedure API as suggested by Tim.

提交回复
热议问题