Estimate for more than 10,000 books
This commit is contained in:
parent
e1af0c2a7e
commit
e1c5399a95
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ func (db *pgDB) getBooks(active bool, query string, length int, start int) (book
|
||||||
OrderExpr(order, rankParams...).
|
OrderExpr(order, rankParams...).
|
||||||
Offset(start).
|
Offset(start).
|
||||||
Limit(length).
|
Limit(length).
|
||||||
SelectAndCountEstimate(1000)
|
SelectAndCountEstimate(10000)
|
||||||
return books, num, err
|
return books, num, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue