Skip site navigation (1) Skip section navigation (2)

Re: How to bulk load a schema using JDBC multiple times?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Olarte <olarte(dot)andres(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: How to bulk load a schema using JDBC multiple times?
Date: 2005-10-16 03:40:42
Message-ID: 4498.1129434042@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-jdbc
Andres Olarte <olarte(dot)andres(at)gmail(dot)com> writes:
> 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.

Sounds to me like you've been neglecting to vacuum the system catalogs.

			regards, tom lane

In response to

pgsql-jdbc by date

Next:From: AlbertoDate: 2005-10-16 13:43:55
Subject: unsuscribe
Previous:From: Andres OlarteDate: 2005-10-15 23:08:04
Subject: How to bulk load a schema using JDBC multiple times?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group