管理更新包含一组复杂更改的数据库的最佳实践
我正在编写一个应用程序,其中数据库中有一些公开可用的信息,我希望用户能够编辑这些信息。这些信息不像维基百科那样是文本信息,但在概念上是相似的,因为编辑使公共信息越来越接近事实。更改会影响多个表,并且需要在影响公共表之前自动检查更新。
我正在进行设计,我想知道是否有任何最佳实践可以帮助解决某些特定问题。
- 我想提供撤消功能。
- 我想向用户展示所有更改的综合结果。
- 当用户说他们已经完成时,我需要检查基础公共数据以确保它没有被其他人更改。
我当前的计划是让用户在一组设置为私人工作区域的桌子中工作。一旦准备好,他们就可以启动一个过程来检查所有内容并更新公共表。可以使用保存到表的命令模式来记录撤消。
有没有我可能错过的技术或有用的论文或模式?
提前致谢!
I am writing an application where I have some publicly available information in a database which I want the users to be able to edit. The information is not textual like a wiki but is similar in concept because the edits bring the public information increasingly closer to the truth. The changes will affect multiple tables and the update needs to be automatically checked before affecting the public tables.
I'm working on the design and I'm wondering if there are any best practices that might help with some particular issues.
- I want to provide undo capability.
- I want to show the user the combined result of all their changes.
- When the user says they're done, I need to check the underlying public data to make sure it hasn't been changed by somebody else.
My current plan is to have the user work in a set of tables setup to be a private working area. Once they're ready they can kick off a process to check everything and update the public tables. Undo can be recorded using Command pattern saving to a table.
Are there any techniques I might have missed or useful papers or patterns?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会这样做:
I would do it like this: