<xml></xml>

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

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

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_dotnet62 (in libdb_dotnet62.dll) Version: 6.2.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

CompactConfig Class
BerkeleyDB Namespace