C# Class Raven.Database.Indexing.BaseBatchSizeAutoTuner

Exibir arquivo Open project: robashton/ravendb Class Usage Examples

Protected Properties

Property Type Description
context WorkContext

Public Methods

Method Description
AutoThrottleBatchSize ( int amountOfItemsToIndex, long size, System.TimeSpan indexingDuration ) : void
OutOfMemoryExceptionHappened ( ) : void

This let us know that an OOME has happened, and we need to be much more conservative with regards to how fast we can grow memory.

Protected Methods

Method Description
BaseBatchSizeAutoTuner ( WorkContext context ) : System
GetLastAmountOfItems ( ) : IEnumerable
RecordAmountOfItems ( int numberOfItems ) : void

Private Methods

Method Description
ConsiderDecreasingBatchSize ( int amountOfItemsToIndex, System.TimeSpan indexingDuration ) : bool
ConsiderIncreasingBatchSize ( int amountOfItemsToIndex, long size, System.TimeSpan indexingDuration ) : bool
ReduceBatchSizeIfCloseToMemoryCeiling ( ) : bool

Method Details

AutoThrottleBatchSize() public method

public AutoThrottleBatchSize ( int amountOfItemsToIndex, long size, System.TimeSpan indexingDuration ) : void
amountOfItemsToIndex int
size long
indexingDuration System.TimeSpan
return void

BaseBatchSizeAutoTuner() protected method

protected BaseBatchSizeAutoTuner ( WorkContext context ) : System
context WorkContext
return System

GetLastAmountOfItems() protected abstract method

protected abstract GetLastAmountOfItems ( ) : IEnumerable
return IEnumerable

OutOfMemoryExceptionHappened() public method

This let us know that an OOME has happened, and we need to be much more conservative with regards to how fast we can grow memory.
public OutOfMemoryExceptionHappened ( ) : void
return void

RecordAmountOfItems() protected abstract method

protected abstract RecordAmountOfItems ( int numberOfItems ) : void
numberOfItems int
return void

Property Details

context protected_oe property

protected WorkContext,Raven.Database.Indexing context
return WorkContext