django AuditTrail 与 Reversion [英] django AuditTrail vs Reversion
问题描述
我正在开发一个新的网络应用程序,我需要在数据库中存储任何更改以审计表.此类审计表的目的是,稍后在实际的物理审计中,我们可以确定在某种情况下发生了什么,谁编辑了什么以及在例如时数据库的状态是什么.复杂的计算.所以大多数审计表将被写入而不是读取.有时可能会生成报告.
I am working on an new web app I need to store any changes in database to audit table(s). Purpose of such audit tables is that later on in a real physical audit we can asecertain what happened in a situation, who edited what and what was the state of db at the time of e.g. a complex calculation. So mostly audit table will be written and not read. Report may be generated though sometimes.
我已经寻找了可用的解决方案
I have looked for available solution
- AuditTrail - 简单,这就是我倾向于它的原因,我可以理解它文件代码.
- Reversion - 看起来很容易使用,但不确定修改它有多容易如果需要.
- rcsField 似乎非常复杂,对我的需求来说太多了
- AuditTrail - simple and that is why I am inclining towards it, I can understand it single file code.
- Reversion - looks simple enough to use but not sure how easy it would be to modify it if needed.
- rcsField seems to be very complex and too much for my needs
我还没有尝试过这些,所以我想知道一些真实的体验,以及我应该使用哪一种.例如哪个速度快,占用空间少,易于扩展和维护?
I haven't tried anyone of these, so I wanted to know some real experiences and which one I should be using. e.g. which one is faster uses less space, easy to extend and maintain?
推荐答案
正如我在我的问题中所述,rcField 似乎满足了我的需求,这很简单,我想将任何更改存储到我的表中,并且可能会出现稍后返回到这些更改以生成一些报告.
As i stated in my question rcField seems to be to much for my needs, which is simple that i want store any changes to my table, and may be come back later to those changes to generate some reports.
所以我测试了 AuditTrail 和 ReversionReversion 似乎是一个更好的成熟应用程序,具有许多功能(我不需要),而且据我所知,它以 XML 或 YAML 格式将数据保存在单个表中,我认为
So I tested AuditTrail and Reversion Reversion seems to be a better full blown application with many features(which i do not need), Also as far as i know it saves data in a single table in XML or YAML format, which i think
- 将在单个表中生成过多数据
- 为了读取这些数据,我可能无法使用现有的数据库工具.
AuditTrail 在这方面胜出,它为每个表生成相应的审计表,因此可以轻松跟踪更改,每个表的数据较少且易于操作和用户生成报告.
AuditTrail wins in that regard that for each table it generates a corresponding audit table and hence changes can be tracked easily, per table data is less and can be easily manipulated and user for report generation.
所以我要使用 AuditTrail.
So i am going with AuditTrail.
这篇关于django AuditTrail 与 Reversion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!