You can enable write-behind support either using the ObjectGrid descriptor XML file or programmatically using the BackingMap interface.
Use either the ObjectGrid descriptor XML file to enable write-behind support, or programmatically by using the BackingMap interface.
<objectGrid name="library" > <backingMap name="book" writeBehind="T300;C900" pluginCollectionRef="bookPlugins"/>
::= <defaults> | <update time> | <update key count> | <update time> ";" <update key count>::= "T" <positive integer>::= "C" <positive integer>::= ""
These parameters are just hints. The real update count and update time will be within close range of the parameters. However, we do not guarantee that the actual update count or update time are the same as defined in the parameters. Also, the first behind update could happen after up to twice as long as the update time. This is because ObjectGrid randomizes the update starting time so all partitions will not hit the database simultaneously.
In the previous example T300;C900, the loader writes the data to the back-end when 300 seconds have passed since the last update or when 900 keys are pending to be updated. The default update time is 300 seconds and the default update key count is 1000.