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

If true and the secondary database is empty, walk through Primary and create an index to it in the empty secondary. This operation is potentially very expensive.

Namespace: BerkeleyDB
Assembly: libdb_dotnet51 (in libdb_dotnet51.dll) Version: 5.1.19.0

# Syntax

C#
    public bool Populate

Visual Basic (Declaration)
    Public Populate As Boolean

Visual C++
    public:
    bool Populate

# Remarks

If the secondary database has been opened in an environment configured with transactions, the entire secondary index creation is performed in the context of a single transaction.

Care should be taken not to use a newly-populated secondary database in another thread of control until Open(String, SecondaryDatabaseConfig) has returned successfully in the first thread.

If transactions are not being used, care should be taken not to modify a primary database being used to populate a secondary database, in another thread of control, until Open(String, SecondaryDatabaseConfig) has returned successfully in the first thread. If transactions are being used, Berkeley DB will perform appropriate locking and the application need not do any special operation ordering.

# See Also

SecondaryDatabaseConfig Class
BerkeleyDB Namespace