Class: Turbopuffer::Models::QueryPerformance
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Turbopuffer::Models::QueryPerformance
- Defined in:
- lib/turbopuffer/models/query_performance.rb
Instance Attribute Summary collapse
-
#approx_namespace_size ⇒ Integer
the approximate number of documents in the namespace.
-
#cache_hit_ratio ⇒ Float
The ratio of cache hits to total cache lookups.
-
#cache_temperature ⇒ String
A qualitative description of the cache hit ratio (‘hot`, `warm`, or `cold`).
-
#exhaustive_search_count ⇒ Integer
The number of unindexed documents processed by the query.
-
#query_execution_ms ⇒ Integer
Request time measured on the server, excluding time spent waiting due to the namespace concurrency limit.
-
#server_total_ms ⇒ Integer
Request time measured on the server, including time spent waiting for other queries to complete if the namespace was at its concurrency limit.
Instance Method Summary collapse
-
#initialize(approx_namespace_size: , cache_hit_ratio: , cache_temperature: , exhaustive_search_count: , query_execution_ms: , server_total_ms: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see QueryPerformance for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(approx_namespace_size: , cache_hit_ratio: , cache_temperature: , exhaustive_search_count: , query_execution_ms: , server_total_ms: ) ⇒ Object
Some parameter documentations has been truncated, see Turbopuffer::Models::QueryPerformance for more details.
The performance information for a query.
|
|
# File 'lib/turbopuffer/models/query_performance.rb', line 44
|
Instance Attribute Details
#approx_namespace_size ⇒ Integer
the approximate number of documents in the namespace.
10 |
# File 'lib/turbopuffer/models/query_performance.rb', line 10 required :approx_namespace_size, Integer |
#cache_hit_ratio ⇒ Float
The ratio of cache hits to total cache lookups.
16 |
# File 'lib/turbopuffer/models/query_performance.rb', line 16 required :cache_hit_ratio, Float |
#cache_temperature ⇒ String
A qualitative description of the cache hit ratio (‘hot`, `warm`, or `cold`).
22 |
# File 'lib/turbopuffer/models/query_performance.rb', line 22 required :cache_temperature, String |
#exhaustive_search_count ⇒ Integer
The number of unindexed documents processed by the query.
28 |
# File 'lib/turbopuffer/models/query_performance.rb', line 28 required :exhaustive_search_count, Integer |
#query_execution_ms ⇒ Integer
Request time measured on the server, excluding time spent waiting due to the namespace concurrency limit.
35 |
# File 'lib/turbopuffer/models/query_performance.rb', line 35 required :query_execution_ms, Integer |
#server_total_ms ⇒ Integer
Request time measured on the server, including time spent waiting for other queries to complete if the namespace was at its concurrency limit.
42 |
# File 'lib/turbopuffer/models/query_performance.rb', line 42 required :server_total_ms, Integer |