Skip to content

Conversation

@markets
Copy link
Collaborator

@markets markets commented Aug 31, 2018

Render partials (in /members/manage and /members) using collection for speed 🏇 😄

EXTRA

Copy link
Collaborator

@sauloperez sauloperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it really faster than each? I didn't know about it.

@markets
Copy link
Collaborator Author

markets commented Sep 4, 2018

It's not a big big change 😃 but it seems worth doing: https://medium.com/@coorasse/partial-rendering-performance-in-rails-101fdfb6ffb9

It's also the recommended way of rendering collections: https://guides.rubyonrails.org/layouts_and_rendering.html#rendering-collections

@enricostano
Copy link
Contributor

Rebased (via merge) and deployed to staging

@sseerrggii
Copy link
Contributor

Works fine for me! Thanks @markets 💪

@enricostano enricostano merged commit cb66a2d into develop Oct 18, 2018
@enricostano enricostano deleted the render_partial_with_collection branch October 18, 2018 13:33
@enricostano enricostano mentioned this pull request Oct 19, 2018
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.

In /members/manage view don't redirect to /member after cancel membership Members list, paginate in even numbers

5 participants