Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::QueryAdvisorResult::IndexAdvice.
Recommendation to add new indexes to run queries more efficiently.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#ddl
def ddl() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. DDL statements to add new indexes that will improve the query.
#ddl=
def ddl=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. DDL statements to add new indexes that will improve the query.
Returns
- (::Array<::String>) — Optional. DDL statements to add new indexes that will improve the query.
#improvement_factor
def improvement_factor() -> ::Float
Returns
- (::Float) — Optional. Estimated latency improvement factor. For example if the query currently takes 500 ms to run and the estimated latency with new indexes is 100 ms this field will be 5.
#improvement_factor=
def improvement_factor=(value) -> ::Float
Parameter
- value (::Float) — Optional. Estimated latency improvement factor. For example if the query currently takes 500 ms to run and the estimated latency with new indexes is 100 ms this field will be 5.
Returns
- (::Float) — Optional. Estimated latency improvement factor. For example if the query currently takes 500 ms to run and the estimated latency with new indexes is 100 ms this field will be 5.