Click or drag to resize

RedisQueryPersistenceServiceAddResults Method

Adds more results to an already registered stateful query

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

Parameters

queryId  Guid
The query id for which results should be added
results  IEnumerableGuid
The set of result keys which should be added to the registered stateful query
totalResults  Int32
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