Click or drag to resize

BuilderWithMetadataSyncOptions Method

If not set through this method, the default value options will be used (metadata synchronization is enabled by default). The api reference of MetadataSyncOptions specifies what is the default for each option.

In case you disable Metadata synchronization, please ensure you invoke RefreshSchemaAsync(String, String) in order to keep the token metadata up to date otherwise you will not be getting everything you can out of token aware routing, i.e. TokenAwarePolicy, which is enabled by the default.

Disabling this feature has the following impact:

  • Token metadata will not be computed and stored. This means that token aware routing (TokenAwarePolicy, enabled by default) will only work correctly if you keep the token metadata up to date using the RefreshSchemaAsync(String, String) method. If you wish to go this route of manually refreshing the metadata then it's recommended to refresh only the keyspaces that this application will use, by passing the
    keyspace
    parameter.
  • Keyspace metadata will not be cached by the driver. Every time you call methods like GetTable(String, String), GetKeyspace(String) and other similar methods of the Metadata class, the driver will query that data on demand and will not cache it.
  • The driver will not handle
    SCHEMA_CHANGED
    responses. This means that when you execute schema changing statements through the driver, it will not update the schema or topology metadata automatically before returning.

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public Builder WithMetadataSyncOptions(
	MetadataSyncOptions metadataSyncOptions
)

Parameters

metadataSyncOptions
Type: DseMetadataSyncOptions
The new options to set.

Return Value

Type: Builder
This Builder.
See Also