Re: COPY FROM performance improvements
От
Luke Lonergan
Тема
Re: COPY FROM performance improvements
Дата
Msg-id
BF1F81DE.C26A%llonergan@greenplum.com
Ответ на
Re: COPY FROM performance improvements (Alvaro Herrera)
Список
Дерево обсуждения
COPY FROM performance improvements "Alon Goldshuv" <agoldshuv@greenplum.com>
Re: COPY FROM performance improvements "Luke Lonergan" <llonergan@greenplum.com>
Re: COPY FROM performance improvements "Luke Lonergan" <llonergan@greenplum.com>
Re: COPY FROM performance improvements "Andrew Dunstan" <andrew@dunslane.net>
Re: COPY FROM performance improvements "Luke Lonergan" <llonergan@greenplum.com>
Re: COPY FROM performance improvements "Andrew Dunstan" <andrew@dunslane.net>
Re: COPY FROM performance improvements "Alon Goldshuv" <agoldshuv@greenplum.com>
Re: COPY FROM performance improvements "Andrew Dunstan" <andrew@dunslane.net>
Re: COPY FROM performance improvements "Luke Lonergan" <llonergan@greenplum.com>
Re: COPY FROM performance improvements "Alon Goldshuv" <agoldshuv@greenplum.com>
Re: COPY FROM performance improvements "Luke Lonergan" <llonergan@greenplum.com>
Re: COPY FROM performance improvements "Alon Goldshuv" <agoldshuv@greenplum.com>
Re: COPY FROM performance improvements Tom Lane <tgl@sss.pgh.pa.us>
Re: COPY FROM performance improvements "Alon Goldshuv" <agoldshuv@greenplum.com>
Re: COPY FROM performance improvements "Luke Lonergan" <llonergan@greenplum.com>
Re: COPY FROM performance improvements "Luke Lonergan" <llonergan@greenplum.com>
Re: COPY FROM performance improvements "Luke Lonergan" <llonergan@greenplum.com>
Re: COPY FROM performance improvements Bruce Momjian <pgman@candle.pha.pa.us>
Re: COPY FROM performance improvements "Luke Lonergan" <llonergan@greenplum.com>
Re: COPY FROM performance improvements Bruce Momjian <pgman@candle.pha.pa.us>
Re: COPY FROM performance improvements "Luke Lonergan" <llonergan@greenplum.com>
Re: COPY FROM performance improvements Bruce Momjian <pgman@candle.pha.pa.us>
Re: COPY FROM performance improvements "Luke Lonergan" <llonergan@greenplum.com>
Re: COPY FROM performance improvements Alvaro Herrera <alvherre@surnet.cl>
Alvaro,
On 8/10/05 9:46 AM, "Alvaro Herrera" wrote:
> AFAIR he never claimed otherwise ... his point was that to gain that
> additional speedup, the code has to be made considerable "worse" (in
> maintenability terms.) Have you (or Alon) tried to port the rest of the
> speed improvement to the new code? Maybe it's possible to have at least
> some of it without worsening the maintenability too badly.
As I suggested previously, there is another, more maintainable way to get
more performance from the parsing logic.
It involves replacing something like this:
============================
char c = input_routine()
if (c == '\n') {
else if (
.
.
.
}
============================
With something like this:
============================
char [32] carr;
nread = Input_routine_new(carr,32)
for (i=0; i Another question that comes to mind is: have you tried another compiler?
> I see you are all using GCC at most 3.4; maybe the new optimizing
> infrastructure in GCC 4.1 means you can have most of the speedup without
> uglifying the code. What about Intel's compiler?
We have routinely distributed PostgreSQL with the Intel compiler, up until
recently. Interestingly, GCC now beats it handily in our tests on Opteron
and matches it on Xeon, which is too bad - it's my fav compiler.
The problem with this code is that it doesn't have enough micro-parallelism
without loops on the character parsing core. The compiler can only do
register optimizations and branch prediction (poorly) unless it is given
more to work with.
>> PostgreSQL needs major improvement to compete with Oracle and even MySQL on
>> speed. No whacking on the head is going to change that.
>
> Certainly. I think the point is what cost do we want to pay for the
> speedup. I think we all agree that even if we gain a 200% speedup by
> rewriting COPY in assembly, it's simply not acceptable.
Understood, and I totally agree.
> Another point may be that Bizgres can have a custom patch for the extra
> speedup, without inflicting the maintenance cost on the community.
We are committed to making Postgres the best DBMS for Business Intelligence.
Bizgres makes it safe for businesses to rely on open source for their
production uses. As far as features go, I think the best way for our
customers is to make sure that Bizgres features are supporting the
PostgreSQL core and vis-versa.
- Luke
В списке pgsql-patches по дате отправления