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

collection partial的效能问题 #96

Open
3014zhangshuo opened this issue Nov 8, 2016 · 0 comments
Open

collection partial的效能问题 #96

3014zhangshuo opened this issue Nov 8, 2016 · 0 comments

Comments

@3014zhangshuo
Copy link

在rails102 ,介绍collection partial用法里是这样的写的
<%= render :partial => "topic_list", :collection => @topics, :as => :topic %>
是不是可以理解成(把所有的topic_list的数据都捞出来),那我想要其中的几类(比如topic.title)数据,这样写会不会浪费效能啊?

效能具体的含义是指计算机执行这个动作花费的时间吗?

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

1 participant