On 22 November 2011 09:29, Rajeev Kannav Sharma
<rajeevsharm...@gmail.com> wrote:
>
> Hi i have a Query like this to Download details as CSV and using MongoDb,
> Mongoid
> users.all.each do |user|
>   csv << [user.id.to_s,
>           user.profile.id,
>           user.profile.status,
>           user.profile.username,
>           render_time(user.created_at),
>           render_time(user.updated_at),
>           render_time(user.checked_out_at),
>           render_time(user.checked_in_at),
>           user.result,
>           user.state,
>           user.language,
>           user.content,
>           user.score.to_s,
>           users_url(user)]
> end
>
> But For instance, this is the tail of my local log when I export to csv
> 20000 users It Dies and i got a Empty csv file ,,
> Is there any recommended ways/suggestion to resolve this issue ?

You have not shown us the log.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to