Re: Multithreaded query onto 4 postgresql instances

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: Multithreaded query onto 4 postgresql instances
Дата
Msg-id D7A1A619-E246-44B2-96BA-974B702CA54C@solfertje.student.utwente.nl
обсуждение исходный текст
Ответ на Re: Multithreaded query onto 4 postgresql instances  (Alessandro Candini <candini@meeo.it>)
Список pgsql-general
On 16 Feb 2011, at 9:54, Alessandro Candini wrote:
>> Try the above on a single DB using 4 threads. It will very probably perform better.
>> To use your example:
>> 5432 --->  150 million records
>> 5432 --->  150 million records
>> 5432 --->  150 million records
>> 5432 --->  150 million records
>>
>
> Excuse me but query must to be performed on the whole db...with your approach, how to merge results of every query in
onesingle response? 


You have several options there. You can limit the query results by adding WHERE-clauses restricting each query to a
particularset of data (partial indices may help there). Or you can split the database across multiple schema's,
emulatingthe multi-database setup you have now. Or you can partition your tables (across multiple tablespaces would
probablybe a good idea). Plenty of options there. 

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.


!DSPAM:737,4d5c16fc11737633677592!



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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Raid Controller Write Cache setting for WAL and Data
Следующее
От: "Gavrina, Irina"
Дата:
Сообщение: Hide db name and user name in process list arguments