CSVã§ã¨ã¯ã¹ãã¼ããããã¨ãFasterCSVã¯ãã使ããã©ãã¬ã³ã¼ãæ°ãå¢ããã°ããã«æ¯ä¾ãã¦å¦çã¹ãã¼ããéåããã People.find(1, :include=>:profiles) ã¨ããã¨ããããhas_manyãã¦ããprofileã1000åãã£ãå ´åããããããªãã¸ã§ã¯ãã®newãããã«ããã¯ã«ãªãããããããã«FasterCSVã§eachåãã¦csvåããã¨ãªãã¨ããã«é ãã1000ãªãã¾ã ããããã1ä¸ã10ä¸ã¨ãããªã¼ãã¼ã«ãªãã¨çµããã ãªã®ã§ãããããã¨ãã¯mysqlãããã¯ã¢ããç¨ã¨ãã¦ãµãã¼ããã¦ããsqlã使ããç´æ¥mysqlã«sqlãæãã¦csvãåãã¦ããããã Profile.connection.execute("SELECT id, name, created_at from profiles where people_id = 1 INTO
{{#tags}}- {{label}}
{{/tags}}