If true, return pages to the filesystem when possible. If false, pages emptied as a result of compaction will be placed on the free list for re-use, but never returned to the filesystem.

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet52 (in libdb_dotnet52.dll) Version: 5.2.28.0

Syntax

C#
public bool TruncatePages
Visual Basic (Declaration)
Public TruncatePages As Boolean
Visual C++
public:
bool TruncatePages

Remarks

Note that only pages at the end of a file can be returned to the filesystem. Because of the one-pass nature of the compaction algorithm, any unemptied page near the end of the file inhibits returning pages to the file system. A repeated call to Compact(CompactConfig) or Compact(CompactConfig) with a low FillPercentage may be used to return pages in this case.

See Also