2022-12-07 14:05:11 +01:00
|
|
|
using Raven.Client.Documents.Indexes;
|
|
|
|
|
|
2026-04-07 14:23:29 +02:00
|
|
|
namespace Finch.Raven;
|
2022-12-07 14:05:11 +01:00
|
|
|
|
|
|
|
|
public static class RavenIndexExtensions
|
|
|
|
|
{
|
|
|
|
|
public static void Throttle(this AbstractCommonApiForIndexes index, TimeSpan delay)
|
|
|
|
|
{
|
|
|
|
|
index.Configuration[RavenConstants.Indexing.ThrottlingTimeIntervalInMs] = delay.TotalMilliseconds.ToString();
|
|
|
|
|
}
|
|
|
|
|
}
|