InMemory Field

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
LogConfig..::.InMemory Field
LogConfig Class See Also Send Feedback

If true, maintain transaction logs in-memory rather than on disk.

Namespace: BerkeleyDB
Assembly: libdb_dotnet62 (in libdb_dotnet62.dll) Version: 6.2.32.0

# Syntax

C#
    public bool InMemory

Visual Basic (Declaration)
    Public InMemory As Boolean

Visual C++
    public:
    bool InMemory

# Remarks

This means that transactions exhibit the ACI (atomicity, consistency, and isolation) properties, but not D (durability); database integrity is maintained, but if the application or system fails, integrity does not persist. All database files must be verified and/or restored from a replication group master or archival backup after application or system failure.

When in-memory logs are configured and no more log buffer space is available, Berkeley DB methods may throw FullLogBufferException. When choosing log buffer and file sizes for in-memory logs, applications should ensure the in-memory log buffer size is large enough that no transaction ever spans the entire buffer, and avoids a state where the in-memory buffer is full and no space can be freed because a transaction that started in the first log "file" is still active.

# See Also

LogConfig Class
BerkeleyDB Namespace