Table of Contents

Class KEFCoreStoreLookupAttribute

Namespace
MASES.EntityFrameworkCore.KNet.Metadata
Assembly
MASES.EntityFrameworkCore.KNet.dll

Configures the Kafka Streams store query optimization flags for this entity type, overriding the context-level defaults set via KEFCoreDbContext options.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class KEFCoreStoreLookupAttribute : Attribute
Inheritance
KEFCoreStoreLookupAttribute
Inherited Members

Remarks

Each flag enables a specific query optimization path in the Streams state store. Only set the flags relevant to the query patterns used for this entity — unused optimizations add overhead to query planning without benefit.

Properties

UseStoreKeyRange

Enables key range look-up optimization for range predicates on the primary key. Default is true.

public bool UseStoreKeyRange { get; set; }

Property Value

bool

UseStorePrefixScan

Enables prefix scan optimization for queries using StartsWith-style predicates. Default is false.

public bool UseStorePrefixScan { get; set; }

Property Value

bool

UseStoreReverse

Enables reverse iteration optimization for OrderByDescending queries. Default is true.

public bool UseStoreReverse { get; set; }

Property Value

bool

UseStoreReverseKeyRange

Enables reverse key range look-up optimization for descending range queries. Default is true.

public bool UseStoreReverseKeyRange { get; set; }

Property Value

bool

UseStoreSingleKeyLookup

Enables single key look-up optimization for equality predicates on the primary key. Default is true.

public bool UseStoreSingleKeyLookup { get; set; }

Property Value

bool