pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel Stehule <pavel.stehule@gmail.com>
To: Julius Tuskenis <julius@nsoft.lt>
Cc: pgsql-performance@postgresql.org
Subject: Re: generating a large XML document
Date: Mon, 20 Jun 2011 09:58:15 +0200
Message-ID: <BANLkTim2+pQQz7wCaSbt5M3YrfGQtSVK0A@mail.gmail.com> (raw)
In-Reply-To: <BANLkTim-XZQ3_rDP0WSo3iY9Moi8k-tsvQ@mail.gmail.com>
References: <4DFA5AA4.8090001@nsoft.lt>
	<4DFEEA70.6000009@nsoft.lt>
	<BANLkTi=q_yXPWCjCZ37Mtf6n+qORN7Vtbg@mail.gmail.com>
	<4DFEF6E9.90404@nsoft.lt>
	<BANLkTim-XZQ3_rDP0WSo3iY9Moi8k-tsvQ@mail.gmail.com>

2011/6/20 Pavel Stehule <pavel.stehule@gmail.com>:
> 2011/6/20 Julius Tuskenis <julius@nsoft.lt>:
>> Thank you, Pavel for your answer
>>
>> 2011.06.20 09:51, Pavel Stehule rašė:
>>>
>>> can you send a profile?
>>
>> Excuse me, but what do you mean by saying "profile"? I've sent content of
>> pg_settings in the first post. Please be more specific as I am more of a
>> programmer than an server administrator.
>>
>
> a result from oprofile profiler
>

I looked into code - probably a implementation of xmlagg is too silly

xmlagg use a xmlconcat functions - that means repeated xml parsing and
xmlserialization. So it is not effective on larger trees :(

string_agg is more effective now. The solution is only radical
refactoring of xmlagg function.

Pavel




> Regards
>
> Pavel
>
>> --
>> Julius Tuskenis
>> Programavimo skyriaus vadovas
>> UAB nSoft
>> mob. +37068233050
>>
>>
>> --
>> Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-performance
>>
>



view thread (9+ messages)  latest in thread

Message-ID: <BANLkTim2+pQQz7wCaSbt5M3YrfGQtSVK0A@mail.gmail.com>
Permalink:  ../BANLkTim2+pQQz7wCaSbt5M3YrfGQtSVK0A@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTim2+pQQz7wCaSbt5M3YrfGQtSVK0A@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: pavel.stehule@gmail.com, julius@nsoft.lt
  Subject: Re: generating a large XML document
  In-Reply-To: <BANLkTim2+pQQz7wCaSbt5M3YrfGQtSVK0A@mail.gmail.com>
  References: <4DFA5AA4.8090001@nsoft.lt> <4DFEEA70.6000009@nsoft.lt> <BANLkTi=q_yXPWCjCZ37Mtf6n+qORN7Vtbg@mail.gmail.com> <4DFEF6E9.90404@nsoft.lt> <BANLkTim-XZQ3_rDP0WSo3iY9Moi8k-tsvQ@mail.gmail.com> <BANLkTim2+pQQz7wCaSbt5M3YrfGQtSVK0A@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox