Estimate for more than 10,000 books

This commit is contained in:
Las Zenow 2018-07-02 10:58:54 +00:00
parent e1af0c2a7e
commit e1c5399a95

View file

@ -87,7 +87,7 @@ func (db *pgDB) getBooks(active bool, query string, length int, start int) (book
OrderExpr(order, rankParams...).
Offset(start).
Limit(length).
SelectAndCountEstimate(1000)
SelectAndCountEstimate(10000)
return books, num, err
}