-
Interaction between peach and other optimisations
I understand there are various parallel optimisations that happen under the hood when running with some number of secondary threads, e.g. summing across multiple partitions. How do these interact with peach?
For example:
disk0/hdb/par.txt –> disk1/hdb/partitions , disk2/hdb/partitions disk1/hdb/partitions/1-3-5 disk2/hdb/partitions/2-4-6
If I ran a query such as
select sum price by sym where int within (1;4)
and I had two secondary threads available, thread #1 would retrieve data from partitions 1, 3 on disk 1, and thread #2 would retrieve data from partitions 2, 4 on disk 2 to maximise I/O throughput.
But if my queries were wrapped in peach, would this still be possible, given peach would be using all available threads, e.g.
{x[]} peach ( {select sum price by sym where int within (1;4)}; {select sum price by sym where int within (5;6)} )
So are there situations when using peach can reduce performance? Thank you
Log in to reply.