Don't use count estimate in postgresql

It produces random numbers that misslead the code.
This commit is contained in:
Las Zenow 2018-11-19 02:44:34 +00:00
parent e1c5399a95
commit 5bcb08ef37

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(10000)
SelectAndCount()
return books, num, err
}