setShadowPaging function

Sets shadow paging on.

Syntax
ConfigPersistent ConfigPersistent.setShadowPaging(
  boolean shadow
) throws ULjException
Parameters
  • shadow   Set true to set shadow paging on; otherwise, false.

Remarks

Shadow paging means that all writing to the persistent store occurs to unused database pages, which do not become permanently stored until a commit operation completes. All committed changes are guaranteed to be permanently saved, even if the application terminates abnormally.

If shadow paging is set to false, the database may be corrupt when change operations have occurred but are not yet committed.

Persisting without shadow paging means that database operations can proceed more quickly and return smaller database results.

A database should only be processed without shadow paging if the data is non-critical or can be recovered by synchronization.

Returns

This ConfigPersistent with ShadowPaging set.