aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/where.c')
-rw-r--r--src/where.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c
index 4a27b9e38..330faf771 100644
--- a/src/where.c
+++ b/src/where.c
@@ -4308,7 +4308,7 @@ static int whereLoopAddBtreeIndex(
}else{
/* Each row involves a step of the index, then a binary search of
** the main table */
- WhereCost rStepAndSearch = rLogSize>80 ? rLogSize-80 : 1;
+ WhereCost rStepAndSearch = whereCostAdd(10, rLogSize>17 ? rLogSize-17 : 1);
pNew->rRun = whereCostAdd(pNew->rRun, rStepAndSearch);
}
/* TBD: Adjust nOut for additional constraints */