pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jmcnamara@cpan.org
To: pgsql-interfaces@postgresql.org
Subject: Re: export to excel format
Date: 11 Apr 2003 15:05:34 -0700
Message-ID: <8cceb2da.0304111405.26ecc247@posting.google.com> (raw)
References: <20030411142918.GA26041@wolff.to>

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:


    #!/usr/bin/perl -w

    use strict;
    use Spreadsheet::WriteExcel;

    my $workbook  = Spreadsheet::WriteExcel->new("4mb.xls");
    my $worksheet = $workbook->addworksheet();

    for my $row (0 .. 8_100) {
        $worksheet->write($row, 0, "Test string " x 20);
        $worksheet->write($row, 1, "Test string " x 20);
    }

    __END__


John.
--




view thread (7+ messages)  latest in thread

Message-ID: <8cceb2da.0304111405.26ecc247@posting.google.com>
Permalink:  ../8cceb2da.0304111405.26ecc247@posting.google.com/
Also on:    postgresql.org/message-id/8cceb2da.0304111405.26ecc247@posting.google.com

 · 

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: jmcnamara@cpan.org
  Subject: Re: export to excel format
  In-Reply-To: <8cceb2da.0304111405.26ecc247@posting.google.com>

* 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