Skip to content

Evolution covering better usage of backing store features - #497

Merged
masesdevelopers merged 5 commits into
masterfrom
496-use-features-of-backing-store-to-avoid-full-enumeration
Mar 10, 2026
Merged

masesdevelopers merged 5 commits into
masterfrom
496-use-features-of-backing-store-to-avoid-full-enumeration

Conversation

@masesdevelopers

Copy link
Copy Markdown
Collaborator

Description

The PR updates the engine and adds new capabilities associated to backing store features able to optimize some specific queries like Where/Last/LastOrDefault avoiding the full enumerable to be applied each time when few data shall be retrieved, only last shall be queried. Some test programs updates consequently.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

The PR updates the engine and adds new capabilities associated to backing store features able to optimize some specific queries like Where/Last/LastOrDefault avoiding the full enumerable to be applied each time when few data shall be retrieved, only last shall be queried. Some test programs updates consequently.
try
{
watch.Restart();
int count = context.Blogs!.Where(b => b.BlogId > 1 && b.BlogId < ProgramConfig.Config.NumberOfElements - 1).Count();
void IPrintableExpression.Print(ExpressionPrinter expressionPrinter)
=> expressionPrinter.Append(nameof(KafkaSingleKeyTableExpression) + ": Entity: " + EntityType.DisplayName()
+ ": RangeStart: " + RangeStart?.ToString()
+ ": RangeEnd: " + RangeEnd?.ToString());
/// </summary>
void IPrintableExpression.Print(ExpressionPrinter expressionPrinter)
=> expressionPrinter.Append(nameof(KafkaSingleKeyTableExpression) + ": Entity: " + EntityType.DisplayName()
+ ": RangeStart: " + RangeStart?.ToString()
void IPrintableExpression.Print(ExpressionPrinter expressionPrinter)
=> expressionPrinter.Append(nameof(KafkaSingleKeyTableExpression) + ": Entity: " + EntityType.DisplayName()
+ ": RangeStart: " + RangeStart?.ToString()
+ ": RangeEnd: " + RangeEnd?.ToString());
/// </summary>
void IPrintableExpression.Print(ExpressionPrinter expressionPrinter)
=> expressionPrinter.Append(nameof(KafkaSingleKeyTableExpression) + ": Entity: " + EntityType.DisplayName()
+ ": RangeStart: " + RangeStart?.ToString()
/// </summary>
void IPrintableExpression.Print(ExpressionPrinter expressionPrinter)
=> expressionPrinter.Append(nameof(KafkaSingleKeyTableExpression) + ": Entity: " + EntityType.DisplayName()
+ ": FilterPredicate: " + FilterPredicate?.ToString());
/// </summary>
void IPrintableExpression.Print(ExpressionPrinter expressionPrinter)
=> expressionPrinter.Append(nameof(KafkaSingleKeyTableExpression) + ": Entity: " + EntityType.DisplayName()
+ ": KeyExpressions: " + KeyExpressions.ToString());
@masesdevelopers
masesdevelopers merged commit c898213 into master Mar 10, 2026
38 of 39 checks passed
@masesdevelopers
masesdevelopers deleted the 496-use-features-of-backing-store-to-avoid-full-enumeration branch March 10, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request KEFCore The issue is releated to KEFCore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use features of backing store to avoid full enumeration

1 participant