couchbaselabs / Linq2Couchbase

A Language Integrated Query (LINQ) provider for the Couchbase .NET SDK
Apache License 2.0
95 stars 46 forks source link

Add scan wait to ScanConsistency #327

Closed brantburnett closed 4 years ago

brantburnett commented 4 years ago

Motivation

When using ScanConsistency allow the consumer to specify a scan wait limit.

Modifications

Add overload of ScanConsistency that accepts a scan wait TimeSpan, and pass down through the expression node and clause. Apply this value in ClusterQueryExecutor to the QueryOptions.

Results

Scan wait can be controlled for queries performing with RequestPlus consistency using ScanConsistency.

Close #308

jeffrymorris commented 4 years ago

Thanks Brant