MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
|
cost model in cost-based optimization(CBO) 更多...
#include <cost_model.h>
Public 成员函数 | |
double | cpu_op () |
cpu cost of building hash table | |
double | hash_cost () |
cpu cost of finding hash bucket | |
double | hash_probe () |
cpu cost of finding index | |
double | index_probe () |
i/o cost | |
double | io () |
double | calculate_cost (Memo *memo, GroupExpr *gexpr) |
Private 属性 | |
double | CPU_OP = 0.00002 |
double | HASH_COST = 0.00002 |
double | HASH_PROBE = 0.00001 |
double | INDEX_PROBE = 0.00001 |
double | IO = 0.03 |
cost model in cost-based optimization(CBO)