Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casting IRedisCollection as IQueryable causes Chunk info to get dropped #454

Closed
CormacLennon opened this issue Jun 20, 2024 · 2 comments · Fixed by #455
Closed

Casting IRedisCollection as IQueryable causes Chunk info to get dropped #454

CormacLennon opened this issue Jun 20, 2024 · 2 comments · Fixed by #455

Comments

@CormacLennon
Copy link
Contributor

Casting an IRedisCollection to IQueryable causes chunk info to get dropped

    string[] comps = ["1", "2", "3", "4"];
    var users = provider.RedisCollection<User>(500) as IQueryable<User>;
    var res = await users.Where(x => comps.Contains(x.CompanyId));

Run a profiler whilst that is executed and it it pages in chunks of 100.

@CormacLennon
Copy link
Contributor Author

I've a fix for this and will try and get a PR opened soon enough

@CormacLennon CormacLennon changed the title Casting IRedisCollection as IQueryable causes Chuck info to get dropped Casting IRedisCollection as IQueryable causes Chunk info to get dropped Jun 20, 2024
@shapik1234
Copy link

I think your fix addresses another issue as well. Is there any update on whether your PR will be accepted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants