Skip to content

collection partial的效能问题 #96

Description

@3014zhangshuo

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions