Click or drag to resize

IQueryPersistenceServiceAddResults Method

Adds more results to an already registered stateful query

Namespace:  SanteDB.Core.Services
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
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
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