Esempio n. 1
0
        public ulong GetQueryHash(JsonOperationContext ctx)
        {
            using (var hasher = new QueryHashCalculator(ctx))
            {
                hasher.Write(Query);
                hasher.Write(WaitForNonStaleResults);
                hasher.Write(SkipDuplicateChecking);
                hasher.Write(WaitForNonStaleResultsTimeout?.Ticks);
                hasher.Write(Start);
                hasher.Write(PageSize);
                hasher.Write(QueryParameters);

                return(hasher.GetHash());
            }
        }
Esempio n. 2
0
        public ulong GetQueryHash(JsonOperationContext ctx)
        {
            using (var hasher = new QueryHashCalculator(ctx))
            {
                hasher.Write(Query);
                hasher.Write(WaitForNonStaleResults);
                hasher.Write(SkipDuplicateChecking);
#if FEATURE_SHOW_TIMINGS
                hasher.Write(ShowTimings);
#endif
                hasher.Write(ExplainScores);
                hasher.Write(WaitForNonStaleResultsTimeout?.Ticks);
                hasher.Write(CutoffEtag);
                hasher.Write(Start);
                hasher.Write(PageSize);
                hasher.Write(QueryParameters);

                return(hasher.GetHash());
            }
        }