Shardis.Query 0.2.0

dotnet add package Shardis.Query --version 0.2.0
                    
NuGet\Install-Package Shardis.Query -Version 0.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Shardis.Query" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Shardis.Query" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Shardis.Query" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Shardis.Query --version 0.2.0
                    
#r "nuget: Shardis.Query, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Shardis.Query@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Shardis.Query&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Shardis.Query&version=0.2.0
                    
Install as a Cake Tool

Shardis.Query

Primitives and abstractions for cross-shard query execution in Shardis: streaming enumerators, LINQ helpers, and executor interfaces.

NuGet Downloads License

Install

dotnet add package Shardis.Query --version 0.1.*

When to use

  • You need streaming cross-shard queries with low memory overhead.
  • You want a pluggable executor model across stores (in-memory, EF Core, Marten, …).
  • You need merge modes (unordered/ordered) that work with IAsyncEnumerable<T>.

What’s included

  • IShardQueryExecutor<TSession> — executor interface for shard-local queries.
  • Streaming enumerators & merge operators for unordered / ordered streaming.
  • LINQ adapter helpers to build shard-friendly query expressions.

Quick start

// resolve a shard query executor and run a query
var exec = provider.GetRequiredService<IShardQueryExecutor<MySession>>();
await foreach (var item in exec.QueryAsync(sessionFactory, myQuery, CancellationToken.None))
{
    // process streamed items
}

Configuration / Options

  • Merge modes: unordered (fastest) and ordered (global key selector).
  • Backpressure/channel capacity is configurable on the broadcaster/merge layer.

Integration notes

  • Pair with a concrete provider package (e.g., Shardis.Query.Marten, EF Core sample).
  • Requires a shard session factory and a query object understood by the provider.

Capabilities & limits

  • ✅ Streaming across shards with O(shards + channel capacity) memory
  • ✅ Pluggable store providers
  • ⚠️ Ordered streaming requires a stable key selector and may add latency
  • 🧩 TFM: net8.0, net9.0; Shardis ≥ 0.1

Samples & tests

Versioning & compatibility

Contributing

License

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Shardis.Query:

Package Downloads
Shardis.Marten

Marten integration for Shardis: per-shard sessions and query execution adapter.

Shardis.Query.Marten

Marten query execution components for Shardis fluent query MVP.

Shardis.Query.InMemory

In-memory query executor for Shardis (testing, prototyping).

Shardis.Query.EFCore

Entity Framework Core query executor for Shardis (Where/Select pushdown, unordered streaming).

Shardis.Query.EntityFrameworkCore

Entity Framework Core query executor for Shardis (Where/Select pushdown, unordered streaming).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 0 9/8/2025
0.1.0-prerelease0086 35 9/7/2025
0.1.0-prerelease0085 40 9/7/2025
0.1.0-prerelease0084 117 8/31/2025
0.1.0-prerelease0083 116 8/31/2025
0.1.0-prerelease0082 161 8/28/2025
0.1.0-prerelease0075 161 8/28/2025
0.1.0-prerelease0067 164 8/27/2025