Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Opt](scanner-scheduler) Optimize BlockingQueue, BlockingPriorityQueue and change remote scan thread pool. #27053

Merged

Commits on Nov 16, 2023

  1. [Opt](scanner-scheduler) Optimize BlockingQueue, `BlockingPriorityQ…

    …ueue` and change remote scan thread pool. (apache#26784)
    
    - Optimize `BlockingQueue`, `BlockingPriorityQueue` by swapping `notify` and `unlock` to reduce lock competition. Ref: https://www.boost.org/doc/libs/1_54_0/boost/thread/sync_bounded_queue.hpp
    - Change remote scan thread pool to `PriorityQueue`.
    
    Before:
    ```
    mysql> select  sum(lo_partkey)  from  lineorder;
    +-----------------+
    | sum(lo_partkey) |
    +-----------------+
    | 300021444265405 |
    +-----------------+
    1 row in set (1.11 sec)
    ```
    
    After:
    ```
    mysql> select  sum(lo_partkey)  from  lineorder;
    +-----------------+
    | sum(lo_partkey) |
    +-----------------+
    | 300021444265405 |
    +-----------------+
    1 row in set (0.80 sec)
    ```
    kaka11chen committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    2ec6c0f View commit details
    Browse the repository at this point in the history