Re: export to excel format - Mailing list pgsql-interfaces

From Bruno Wolff III
Subject Re: export to excel format
Date
Msg-id 20030414010528.GA19116@wolff.to
Whole thread Raw
In response to Re: export to excel format  (jmcnamara@cpan.org (John McNamara))
Responses Re: export to excel format
List pgsql-interfaces
On Fri, Apr 11, 2003 at 15:05:34 -0700, John McNamara <jmcnamara@cpan.org> wrote:
> bruno@wolff.to (Bruno Wolff III) wrote:
> 
> > I wrote a perl program that gets data from
> > the database and writes excel spreadsheets. It uses Spreadsheet::WriteExcel
> > which you can get from CPAN. It seems to be pretty slow. It takes about
> > 3 minutes to produce a 4MB spreadsheet.
> 
> 
> Are you sure that the delay is caused by Spreadsheet::WriteExcel. The
> following program produces a 4MB file in 3 seconds on a P700:

That runs in a couple of seconds here. There must be something else making
it a lot slower. Splitting the sheets out with ParseExcel takes about a
minute, so just having about four hundred worksheets may account for
a good chunk of the time if there is substantial per sheet overhead.
There also is a query per sheet that takes about a quarter of a second per
sheet. This would account for about a minute and a half right there.



pgsql-interfaces by date:

Previous
From: Curt Sampson
Date:
Subject: Re: [HACKERS] Speed of SSL connections; cost of renegotiation
Next
From: Bruno Wolff III
Date:
Subject: Re: export to excel format