Subject | Re: [Firebird-Java] Responding to Firebird events |
---|---|
Author | Roman Rokytskyy |
Post date | 2005-05-29T08:52:23Z |
> - thanks a lot for useful information, but for now (because of hastinessI am not sure if event can help you. They tell only that some event is
> :-( , I am looking for a good caching strategy with regard on db data
> changes.
happened (for example, that some table is changed), but they do not tell
which records are changed. In this case you would need to re-read complete
table.
If you assume that rollbacks are rare in your system, you can write an UDF
that will send some information via network sockets and call this UDF in
each AFTER UPDATE/DELETE trigger. There will be false notifications for the
changes that are rolled back, but if the rate is low, it will not affect
your application.
> So, how to properly detect database data changes, and invalidate cachedLet all data changes go through a middle tier, cache them there and
> data in the application ?
invalidate them there?
Roman