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

[Idea] Support for async queries? #269

Closed
Sexual opened this issue Apr 1, 2023 · 1 comment
Closed

[Idea] Support for async queries? #269

Sexual opened this issue Apr 1, 2023 · 1 comment

Comments

@Sexual
Copy link

Sexual commented Apr 1, 2023

Rails 7.1 introduces more async queries such as async_count and async_sum. Would love to use these with groupdate, however it currently raises an error:

undefined method 'key?' for #<ActiveRecord::Promise status=complete>

I assume this is likely because to actually get the value you have to do async_count.value, so wherever key? is being run, it should instead be .value.key?

@ankane
Copy link
Owner

ankane commented Apr 1, 2023

Support was added in Groupdate 6.2 - make sure you're on the latest version.

@ankane ankane closed this as completed Apr 1, 2023
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

No branches or pull requests

2 participants