HomeMogDBMogDB StackUqbar
v3.0

Documentation:v3.0

Supported Versions:

Other Versions:

SMP for Parallel Execution

Availability

This feature is available since MogDB 1.1.0.

Introduction

The Symmetric Multi-Processing (SMP) technology of MogDB uses the multi-core CPU architecture of a computer to implement multi-thread parallel computing, fully using CPU resources to improve query performance.

Benefits

Fully utilizes the system multi-core capability to improve requery performance.

Description

In complex query scenarios, a single query takes long time and the system concurrency is low. Therefore, the SMP technology is used to implement operator-level parallel execution, which effectively reduces the query time and improves the query performance and resource utilization. The overall implementation of the SMP technology is as follows: For query operators that can be executed in parallel, data is sliced, multiple working threads are started for computation, and then the results are summarized and returned to the frontend. The data interaction operator Stream is added to the SMP architecture to implement data interaction between multiple working threads, ensuring the correctness and integrity of the query.

Enhancements

None.

Constraints

  • Index scanning cannot be executed in parallel.
  • MergeJoin cannot be executed in parallel.
  • WindowAgg order by cannot be executed in parallel.
  • The cursor cannot be executed in parallel.
  • Queries in stored procedures and functions cannot be executed in parallel.
  • Subplans and initplans cannot be queried in parallel, and operators that contain subqueries cannot be executed in parallel, either.
  • Query statements that contain the median operation cannot be executed in parallel.
  • Queries with global temporary tables cannot be executed in parallel.
  • Updating materialized views cannot be executed in parallel.

Dependencies

None.

Copyright © 2011-2024 www.enmotech.com All rights reserved.