xorm
xorm copied to clipboard
FindAndCount issue when use cache
rsa := make([]Game, 0)
rsb := make([]Game, 0)
an, _ := RDB.Limit(10, 0).FindAndCount(&rsa)
bn, _ := RDB.Limit(10, 10).FindAndCount(&rsb )
1.SELECT count(*) FROM "tablename" WHERE "_id" IN ($1,$2) []interface {}{"1", "2"} FindAndCount include "id in (xxx,xxx)" as default condition,so an or bn is not right.
2.rsb will not get any data ,err is [cacheFind] cache no hit:tablename[id]