KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Datastore Object From Remote Datastore Command is a Cached Proxy
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: January 11, 2021

The Open Datastore command returns a reference to the datastore object containing dataclasses and entities of the remote datastore. This datastore object is a cached proxy. This means that a new connection is not made when the Open datastore call, under the same local ID, is made again to the remote datastore. It remembers the previous state associated to the local ID session and will send the cached datastore object each time the same Open datastore line is called.

In order to start a new session and retrieve the current version of the remote datastore, either the localID parameter in Open datastore will need to be changed or the client database will need to be restarted.