Re: How to specify the point lookup chunks number(parallelism) at query

2017-08-29 Thread 孙文隆
Thanks James, It is a good idea. The situation is that my customer will give different numbers of "in" conditions randomly. So sometimes there is 10 point lookups for a sql while sometimes there could be 100 thousand point lookups. If I change the guidepost width to a smaller digit , the

Re: How to specify the point lookup chunks number(parallelism) at query

2017-08-29 Thread James Taylor
The finest granularity we have available is to specify a guidepost width at the table level with the GUIDEPOSTS_WIDTH=## property. This will take effect for that table next time stats are collected (on a major compaction or when collected manually through the UPDATE STATISTICS command). On Tue,

How to specify the point lookup chunks number(parallelism) at query

2017-08-29 Thread 孙文隆
Hi there, I am optimizing an sql that is compiled to point lookups. Since sometimes there could be many thousands of "in" conditions in the sql, I would like to increase the parallelism number for better performance. I know that I can increase the salted bucket number or decrease the guide