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
Andres Olarte <olarte.andres@gmail.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
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера