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

Enable collection renderer for all collection-like objects #50

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

skatkov
Copy link
Contributor

@skatkov skatkov commented Nov 2, 2023

We've seen good performance gains from using ActionView::CollectionRenderer, let's now use it for all collection like objects.

On our Offers#list endpoint, we had a mean time of 1.48 seconds and once we enabled CollectionRenderer it went down 1.27 seconds mean. This brought us 15% improvement that we actually expected based on jbuilder experience.

@skatkov skatkov marked this pull request as draft November 7, 2023 23:23
@skatkov
Copy link
Contributor Author

skatkov commented Nov 7, 2023

I tried to integrate this into Cheddarsvc project, but multiple endpoints have failed with this switch.

We probably need to support #array! method and combine that with existing CollectionRenderered code.

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 this pull request may close these issues.

3 participants