Re: [GENERAL] Postgres INSERTs much slower than MySQL? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [GENERAL] Postgres INSERTs much slower than MySQL?
Date
Msg-id 199910220604.CAA28175@candle.pha.pa.us
Whole thread Raw
In response to Re: [GENERAL] Postgres INSERTs much slower than MySQL?  (Vadim Mikheev <vadim@krs.ru>)
Responses Re: [HACKERS] Re: [GENERAL] Postgres INSERTs much slower than MySQL?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> WAL is Write Ahead Log, transaction logging.
> This will reduce # of fsyncs (among other things) Postgres has
> to perform now.
> Test above took near 38 min without -F flag and 24 min
> with -F (no fsync at all).
> With WAL the same test without -F will be near as fast as with
> -F now.
>
> But what makes me unhappy right now is that with -F COPY FROM takes
> JUST 3 min !!! (And 16 min without -F)
> Isn't parsing/planning overhead toooo big ?!

Yikes.  I always thought it would be nice to try and cache query plans
by comparing parse trees, and if they match cached versions, replace any
constants with new ones and use cached query plan.  Hard to do right,
though.


--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-hackers by date:

Previous
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] Planning final assault on query length limits
Next
From: "Matthew N. Dodd"
Date:
Subject: Re: [HACKERS] Readline use in trouble?