rubyonrailsin

A Ruby and Rails talk

Wednesday, March 17, 2010


Re: [Rails] Re: Writing a large file with Spreadsheet: very slow, any HELP?

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

I hope you're sending those tasks to a background worker...

On Wed, Mar 17, 2010 at 8:54 PM, Joe Peck <lists@ruby-forum.com> wrote:
Joe Peck wrote:
> Hey,
>
> I'm using the Spreadsheet gem to generate Excel files.  It's worked
> great up until now.
>
> I'm trying to put 25,000 rows in a sheet, then doing book.write to write
> the file.  It's really slow, like 3-4 minutes.
>
> Is there a way to write groups of rows to a sheet at a time, or some
> other way to speed up this process?  Thanks in advance for any advice.

Oh yeah, I'm using the latest Spreadsheet gem, 0.6.4.1 if that makes a
difference.  Any thoughts on how to speed up the writing process?
--
Posted via http://www.ruby-forum.com/.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive