Re: How to bulk load a schema using JDBC multiple - Mailing list pgsql-jdbc

From Kevin Grittner
Subject Re: How to bulk load a schema using JDBC multiple
Date
Msg-id 43552CE9020000250000010A@gwmta.wicourts.gov
Whole thread Raw
Responses Re: How to bulk load a schema using JDBC multiple times?
List pgsql-jdbc
Have you considered having your test suite create a template
database, and using it to drop and create the test database?

>>> Andres Olarte <olarte.andres@gmail.com>  >>>
Hi,

I need to load and drop my schema multiple times during my unit tests.
This happens several thousand times per run of my test suite.  I'm
loading the schema from the file that's generated by pg_dump, and it
works, but it's SLOW. My tests are taking more than 10 minutes now,
and most of the time is spent loading the schema.  If there away to do
this faster? May be using a store procedure with the whole schema?
I've tried making such a procedure, but it doesn't work do to quoting
problems. Anybody have any ideas? Thanks

Andres


pgsql-jdbc by date:

Previous
From: andy petrella
Date:
Subject: newbie jdbc3 tiny example
Next
From: "O.B."
Date:
Subject: Re: Steps for Running Postgres 8.0 with Crystal Reports 9 (resolved)