 | IQueryPersistenceServiceAddResults Method |
Adds more results to an already registered stateful query
Namespace: SanteDB.Core.ServicesAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntaxvoid AddResults(
Guid queryId,
IEnumerable<Guid> results,
int totalResults
)
Sub AddResults (
queryId As Guid,
results As IEnumerable(Of Guid),
totalResults As Integer
)
void AddResults(
Guid queryId,
IEnumerable<Guid>^ results,
int totalResults
)
abstract AddResults :
queryId : Guid *
results : IEnumerable<Guid> *
totalResults : int -> unit 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
RemarksThis 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