mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 22:56:55 +08:00
Improved code [skip ci]
This commit is contained in:
@@ -118,8 +118,8 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count,
|
|||||||
double layer0Selectivity;
|
double layer0Selectivity;
|
||||||
double scalingFactor = 0.55;
|
double scalingFactor = 0.55;
|
||||||
double ratio;
|
double ratio;
|
||||||
double spc_seq_page_cost;
|
|
||||||
double startupPages;
|
double startupPages;
|
||||||
|
double spc_seq_page_cost;
|
||||||
Relation index;
|
Relation index;
|
||||||
|
|
||||||
/* Never use index without order */
|
/* Never use index without order */
|
||||||
@@ -201,7 +201,7 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count,
|
|||||||
*indexPages = costs.numIndexPages;
|
*indexPages = costs.numIndexPages;
|
||||||
|
|
||||||
Assert(*indexStartupCost > 0);
|
Assert(*indexStartupCost > 0);
|
||||||
Assert(*indexTotalCost > *indexStartupCost);
|
Assert(*indexTotalCost >= *indexStartupCost);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user