Re: XML path function
От | Nikolay Samokhvalov |
---|---|
Тема | Re: XML path function |
Дата | |
Msg-id | e431ff4c0801091247n1b5819a6l76db17006c53f469@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: XML path function ("x asasaxax" <xanaruto@gmail.com>) |
Список | pgsql-general |
On Jan 9, 2008 6:00 PM, x asasaxax <xanaruto@gmail.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@samokhvalov.com> http://nikolay.samokhvalov.com Postgresmen http://postgresmen.ru OpenWebTechnologies http://openwebtech.ru
В списке pgsql-general по дате отправления: