getting the most of out multi-core systems for repeated complex SELECT statements

Поиск
Список
Период
Сортировка
От Mark Stosberg
Тема getting the most of out multi-core systems for repeated complex SELECT statements
Дата
Msg-id iiegdj$jtg$1@dough.gmane.org
обсуждение исходный текст
Ответы Re: getting the most of out multi-core systems for repeated complex SELECT statements  (Andy Colson <andy@squeakycode.net>)
Re: getting the most of out multi-core systems for repeated complex SELECT statements  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-performance
Each night we run over a 100,000 "saved searches" against PostgreSQL
9.0.x. These are all complex SELECTs using "cube" functions to perform a
geo-spatial search to help people find adoptable pets at shelters.

All of our machines in development in production have at least 2 cores
in them, and I'm wondering about the best way to maximally engage all
the processors.

Now we simply run the searches in serial. I realize PostgreSQL may be
taking advantage of the multiple cores some in this arrangement, but I'm
seeking advice about the possibility and methods for running the
searches in parallel.

One naive I approach I considered was to use parallel cron scripts. One
would run the "odd" searches and the other would run the "even"
searches. This would be easy to implement, but perhaps there is a better
way.  To those who have covered this area already, what's the best way
to put multiple cores to use when running repeated SELECTs with PostgreSQL?

Thanks!

    Mark

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

Предыдущее
От: Mario Weilguni
Дата:
Сообщение: Re: Which RAID Controllers to pick/avoid?
Следующее
От: Andy Colson
Дата:
Сообщение: Re: Get master-detail relationship metadata