MCPcopy Create free account
hub / github.com/documentdb/documentdb / ComputeIndexTermLimit

Function ComputeIndexTermLimit

pg_documentdb/src/commands/create_indexes.c:376–388  ·  view source on GitHub ↗

* Compute index term limit based on configuration. */

Source from the content-addressed store, hash-verified

374 * Compute index term limit based on configuration.
375 */
376inline static uint32_t
377ComputeIndexTermLimit(uint32_t baseIndexTermLimit)
378{
379 uint32_t indexTermLimit = baseIndexTermLimit;
380
381 if (IndexTruncationLimitOverride > 0 &&
382 ((uint32_t) IndexTruncationLimitOverride) < indexTermLimit)
383 {
384 indexTermLimit = IndexTruncationLimitOverride;
385 }
386
387 return indexTermLimit;
388}
389
390
391inline static bool

Callers 1

GenerateIndexExprStrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected