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

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet181 (in libdb_dotnet181.dll) Version: 18.1.32.0

Syntax

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

Remarks

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