0
バネの適用プロセス以外でテーブルを挿入/更新しても、バネからテーブルの挿入や更新を聞くことはできますか?バネを使用したテーブルリスナー
バネの適用プロセス以外でテーブルを挿入/更新しても、バネからテーブルの挿入や更新を聞くことはできますか?バネを使用したテーブルリスナー
1つの提案:あなたのRDBMS
- Create triggers for each of your listening tables, this trigger
should base on a new change on these table to update information to
somewhere else
- Create a table (named: datalogger)to store the data come from the trigger above, for example, when table1 has new record inserted, the
trigger (named: trigger1) on table1 will be execute by RDBMS, then
trigger1 will insert a new record into datalogger which describes
the action event is "inserted", table name is "table1", and the
inserted record id is "new_recordId" as example. The same process
need to be applied for modifying action.
- On your application, create a job, which will try to query the datalogger table periodically, (1ms, 10ms,... as your requirement)
to find is there a new record in that table, if any, read the new
record and find out what happened with your database based on the
new record (determine by time or auto-increment id,..)
上のいくつかの余分な作品のベースを行う必要があります