Click or drag to resize

MemoryQueryPersistenceServiceAddResults Method

Adds more results to an already registered stateful query

Namespace:  SanteDB.Caching.Memory
Assembly:  SanteDB.Caching.Memory (in SanteDB.Caching.Memory.dll) Version: 3.0.481-alpha
Syntax
public void AddResults(
	Guid queryId,
	IEnumerable<Guid> results,
	int totalResults
)

Parameters

queryId
Type: SystemGuid
The query id for which results should be added
results
Type: System.Collections.GenericIEnumerableGuid
The set of result keys which should be added to the registered stateful query
totalResults
Type: SystemInt32
If the total number of results in the stateful query (used for calculating the total number of pages) has changed, this is the value to set total results to

Implements

IQueryPersistenceServiceAddResults(Guid, IEnumerableGuid, Int32)
Remarks
This method is used when the caller is loading blocks of results from a source query. This is done because, depending on the database traffic and size of result set, it may take several seconds/minutes to fetch the entirety of the result set. Adding results to an already existing result set allows the caller to return the initial pages of results quickly, whilst taking a longer time to deep-load the remaining results.
See Also