 | RedisQueryPersistenceServiceAddResults Method |
Adds more results to an already registered stateful query
Namespace: SanteDB.Caching.RedisAssembly: SanteDB.Caching.Redis (in SanteDB.Caching.Redis.dll) Version: 3.0.2081-alpha+ce906ccc8091ff0a3c40d1fff3e2485e75a86c5b
Syntaxpublic void AddResults(
Guid queryId,
IEnumerable<Guid> results,
int totalResults
)
Public Sub AddResults (
queryId As Guid,
results As IEnumerable(Of Guid),
totalResults As Integer
)
public:
virtual void AddResults(
Guid queryId,
IEnumerable<Guid>^ results,
int totalResults
) sealed
abstract AddResults :
queryId : Guid *
results : IEnumerable<Guid> *
totalResults : int -> unit
override 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
Implements
IQueryPersistenceServiceAddResults(Guid, IEnumerableGuid, Int32)
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