How to refresh queries

Feb 15, 2011 at 10:08 PM

I've noticed, that my OOB app, after query object aquired, does not see any changes, made by another instance of the same OOB application.

Is there any official way to reload/refresh/update queries?

Feb 15, 2011 at 11:07 PM

No, I'll add that as a feature request but currently Sterling assumes one version of the application is running.

I highly suspect this will be very feasible to implement using pub/sub and local messenger, so it is likely to end up in vNext. Thanks for bringing it up, I'll enter the feature request so you can go vote on it!


Feb 15, 2011 at 11:30 PM

I have found, that ITableDefinition has Refresh method, that works exactly as I expected.

So I just stored the list, returned by _RegisterTables method and added a simple Refresh(Type) method, that call ITableDefinition.Refresh().

Also I customized Flush method on database instance to accept optional type parameter (to flush certain table only).