You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the code in RedisQueryEngine, there is no logic to remove duplicate data that exists in sismember and orSismember. so if the same entity fits multiple conditions, it may be returned as a duplicate.
Additional Context
Note that if we modify the logic, we'll need to do the same for RedisQueryEngine#count.
The text was updated successfully, but these errors were encountered:
In the current implementation, there is an issue with returning the same data twice when querying with Query Methods.
Problem
For example, here's the test code I created.
The expected result seems to be that
eddard
andjon
should be returned.However, the actual result is that two identical eddards and one jon are returned.
Cause of the problem
The fix is simple. Just make sure to remove duplicate values before running the query.
Looking at the code in
RedisQueryEngine
, there is no logic to remove duplicate data that exists insismember
andorSismember
. so if the same entity fits multiple conditions, it may be returned as a duplicate.Additional Context
Note that if we modify the logic, we'll need to do the same for
RedisQueryEngine#count
.The text was updated successfully, but these errors were encountered: