MySQL 8.4.2
Source Code Documentation
opt_costmodel.h File Reference
#include <assert.h>
#include <stddef.h>
#include <sys/types.h>
#include "sql/opt_costconstants.h"

Go to the source code of this file.

Classes

class  Cost_model_server
 API for getting cost estimates for server operations that are not directly related to a table object. More...
 
class  Cost_model_table
 API for getting cost estimates for operations on table data. More...
 

Variables

constexpr const double DISK_SEEK_BASE_COST {0.9}
 
constexpr const int BLOCKS_IN_AVG_SEEK {128}
 
constexpr const double DISK_SEEK_PROP_COST {0.1 / BLOCKS_IN_AVG_SEEK}
 

Variable Documentation

◆ BLOCKS_IN_AVG_SEEK

constexpr const int BLOCKS_IN_AVG_SEEK {128}
constexpr

◆ DISK_SEEK_BASE_COST

constexpr const double DISK_SEEK_BASE_COST {0.9}
constexpr

◆ DISK_SEEK_PROP_COST

constexpr const double DISK_SEEK_PROP_COST {0.1 / BLOCKS_IN_AVG_SEEK}
constexpr