From: | "Nikolay Samokhvalov" <samokhvalov(at)gmail(dot)com> |
---|---|
To: | "x asasaxax" <xanaruto(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: XML path function |
Date: | 2008-01-09 20:47:54 |
Message-ID: | e431ff4c0801091247n1b5819a6l76db17006c53f469@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Jan 9, 2008 6:00 PM, x asasaxax <xanaruto(at)gmail(dot)com> wrote:
> My Postgre version its the 8.2. I´ve reached to do the path i wanted, but
> when i do a explain analyze on the select it return 500 miliseconds. Is this
> a good search? Is there a way to slow down this time with postgre 8.3? What
> is a good time for xml xpath´s?
Unfortunately, this is the normal speed. The reason is that Postgres
does full XML parsing and XPath evaluation at runtume.
If you use
SELECT <columns list>
FROM <table>
WHERE <xpath function> = <constant>,
then functional indexes over xpath function may help. Also, you could
use tsearch2 + functional XPath indexes to index text data from your
XML, if you have corresponding needs.
Unfortunately, that is almost all you can do speeding up your XPath
queries at the moment, and in terms of performance there is no any
major improvements in 8.3 either.
--
Nikolay Samokhvalov <nikolay(at)samokhvalov(dot)com>
http://nikolay.samokhvalov.com
Postgresmen http://postgresmen.ru
OpenWebTechnologies http://openwebtech.ru
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Sullivan | 2008-01-09 20:48:39 | Re: Experiences with extensibility |
Previous Message | Kris Jurka | 2008-01-09 20:16:18 | Re: Prepared Statements |