Commit 5bcb08ef authored by Las Zenow's avatar Las Zenow

Don't use count estimate in postgresql

It produces random numbers that misslead the code.
parent e1c5399a
......@@ -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(10000)
SelectAndCount()
return books, num, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment