pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: John McNamara <jmcnamara@cpan.org>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: export to excel format
Date: Sun, 13 Apr 2003 20:05:28 -0500
Message-ID: <20030414010528.GA19116@wolff.to> (raw)
In-Reply-To: <8cceb2da.0304111405.26ecc247@posting.google.com>
References: <20030411142918.GA26041@wolff.to>
	<8cceb2da.0304111405.26ecc247@posting.google.com>

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.




view thread (7+ messages)  latest in thread

Message-ID: <20030414010528.GA19116@wolff.to>
Permalink:  ../20030414010528.GA19116@wolff.to/
Also on:    postgresql.org/message-id/20030414010528.GA19116@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: bruno@wolff.to, jmcnamara@cpan.org
  Subject: Re: export to excel format
  In-Reply-To: <20030414010528.GA19116@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox