xorm icon indicating copy to clipboard operation
xorm copied to clipboard

FindAndCount issue when use cache

Open no-bibi opened this issue 6 years ago • 0 comments

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]

no-bibi avatar Aug 27 '19 08:08 no-bibi