Skip to content

Enable collection renderer for all collection-like objects#50

Draft
skatkov wants to merge 7 commits into
mainfrom
enable-collection-renderer
Draft

Enable collection renderer for all collection-like objects#50
skatkov wants to merge 7 commits into
mainfrom
enable-collection-renderer

Conversation

@skatkov
Copy link
Copy Markdown
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
Copy Markdown
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