Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
CompactConfig..::.TruncatePages Field
CompactConfig Class See Also

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_dotnet48 (in libdb_dotnet48.dll) Version: 4.8.24.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

CompactConfig Class
BerkeleyDB Namespace