Ice Reference Documentation | ||
---|---|---|
<<< Previous | Properties | Next >>> |
Freeze uses a background thread to save updates to the database. Transactions are used to save many facets together. num defines the maximum number of facets saved per transaction. Defaults to 10 * SaveSizeTrigger (see Freeze.Evictor.env-name.filename.SaveSizeTrigger); if this value is negative, the actual value is set to 100.
When num is not 0 and you create an evictor with one or more empty indices, the createEvictor() call will populate these indices by iterating over all the corresponding facets. This is particularly useful after transforming a Freeze Evictor with FreezeScript, since FreezeScript does not transform indices; however this can significantly slow down createEvictor() if you have an empty index because none of the facets currently in your database match the type of this index. The default value for this property is 0.
When the saving thread saves an object, it needs to lock this object in order to get a consistent copy of the object's state. If the lock cannot be acquired within num seconds, a fatal error is generated. If a fatal error callback was registered by the appplication, this callback is called; otherwise the program is terminated immediately. When num is 0 or negative, there is no timeout. The default value is 0.
<<< Previous | Home | Next >>> |
Glacier2 Properties | Up | IcePatch2 Properties |