Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

FindAndCount issue when use cache #1406

Open
no-bibi opened this issue Aug 27, 2019 · 0 comments
Open

FindAndCount issue when use cache #1406

no-bibi opened this issue Aug 27, 2019 · 0 comments
Labels

Comments

@no-bibi
Copy link

no-bibi commented Aug 27, 2019

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]

@lunny lunny added the kind/bug label Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants