Don't use count estimate in postgresql
It produces random numbers that misslead the code.
This commit is contained in:
parent
e1c5399a95
commit
5bcb08ef37
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...).
|
||||
Offset(start).
|
||||
Limit(length).
|
||||
SelectAndCountEstimate(10000)
|
||||
SelectAndCount()
|
||||
return books, num, err
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue