Re: optimizing a cpu-heavy query

Поиск
Список
Период
Сортировка
От Joel Reymont
Тема Re: optimizing a cpu-heavy query
Дата
Msg-id B7BDD4F5-48B8-4409-8174-19C299871573@gmail.com
обсуждение исходный текст
Ответ на Re: optimizing a cpu-heavy query  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: optimizing a cpu-heavy query  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom,

On Apr 26, 2011, at 5:00 PM, Tom Lane wrote:

> For another couple orders of magnitude, convert the sub-function to C code.  (I don't think you need
> a whole data type, just a function that does the scalar product.)

That's a 30x speedup, from 12 minutes down to 38s. Thanks Tom!

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------




В списке pgsql-general по дате отправления:

Предыдущее
От: Toby Corkindale
Дата:
Сообщение: Re: Poor performance of btrfs with Postgresql
Следующее
От: Toby Corkindale
Дата:
Сообщение: Re: tuning on ec2