【发布时间】:2015-11-12 20:52:42
【问题描述】:
我在我的逻辑应用程序中使用 Sql 连接器作为触发器
-
操作 1 - 每两分钟触发一次,数据可用查询为
select count(*) from Foo where status = "new"并轮询数据查询 如select id, name, status from foo where status = "new"; - 操作 2 - 处理数据;
- 操作 3 - 使用另一个 sql 连接器将 foo 表状态更新为“完成”;
从run image attached 中可以看出,我的数据库中的一个条目启动了多个线程。这是正常的、缺陷还是只是错误的应用程序流动方式?
【问题讨论】: