sql - Detecting changes to a SQL view
问题描述
I have several underlying data tables and some SQL views that apply business logic to those tables. I have a process that at every 5min interval will check the view to see if anything has changed from the last 5min check. I was wondering the best way to implement this step. Initial thoughts is using a check_sum/hashbytes on the view and then if not equal, doing some type of row by row comparison on primary keys but that doesn't seem too efficient. Is there a better way to identify which rows have been changed (or deleted) in the view?
I want to shy away from using triggers on the underlying tables due to some business requirements. Any thoughts?
解决方案
推荐阅读
- python - 有没有办法判断前景窗口是图形窗口还是命令行窗口?
- python - 如何使用 Numpy 在 Python 中记录列的日志?
- mysql - MySQL:查询执行时间超过 30 秒
- node.js - 尝试使用 bcrypt.compare 时出现错误“无法读取值为 null 的属性”
- android - 小吃店消失后,FAB 不会返回初始位置
- c++ - WxWidgets TextCtrl
- wso2 - WSO2 - Docusign 连接器
- javascript - 如何根据异步调用的持续时间设置 JS 变量
- javascript - 将两个对象合二为一,更新键
- javascript - JavaScript 查询参数返回空白而不是“+”