Mr Rao,
I think like in ADORDD the main problem is with additions because deletions or changes are always catched when we try to update.
In ADORDD this is only a problem working without true locks because otherwise for ex. the order will be locked and no additions are possible during a WS edition or transaction like in a normal DBF execution.
To control if we need to refresh the recordset because of additions we are studying this possibility:
1) RDD area array element keeping datetime value of the last refresh of the recordset
2) A SQL table NEEDREFRESH with fields:
TABLE = TABLENAME
DATETIME = DATE TIME ADD NEW RECORD
3) Every time a new addition is made its registered (add or replaced) in NEEDREFRESH with datetime of addition and table name. This can be done directly from ADORDD code or through a trigger or procedure in the server. We have to decide.
4) Every time any replace, delete, addnew takes place the ADORDD first looks in NEEDREFRESH for the table
5) If the datetime in NEEDREFRESH table is newer than the RDD area array element with the datetime last refresh of our recordset we refresh it again resetting the RDD area array element.
One can install a procedure at the server to run at certain hours when no one its connected to clean up this table.
Its a trade off between integrity and speed.
This is only primary proposal study phase and at the end we might go other way.
We will start working it middle August.
Nevertheless I would like very much to have you opinion.