Which ORM framework can best handle an MVCC database design?

前端 未结 6 920
北海茫月
北海茫月 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:34

    I always figured you'd use a db trigger on update and delete to push those rows out into a TableName_Audit table.

    That'd work with ORMs, give you your history and wouldn't decimate select performance on that table. Is that a good idea or am I missing something?

提交回复
热议问题