Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Precautions

Updated on 2025-02-11 GMT+08:00
  • It is recommended that the DB engine version of your TaurusDB instance be 2.0.45.230900 or later.
  • Both the primary node and read replicas support parallel query. Parallel query consumes a lot of compute resources (such as vCPUs and memory). To ensure instance stability, if the kernel version of your TaurusDB instance is 2.0.42.230600 or later, parallel query is disabled for the primary node by default. To enable it, submit a request by choosing Service Tickets > Create Service Ticket in the upper right corner of the management console.
  • Parallel query is suitable for the following scenarios:
    • Full table scans, index scans, index range scans, index reverse scans, index point queries, and index pushdown
    • Single-table queries, multi-table joins, views, subqueries, and partial CTE queries
    • Multiple JOIN algorithms, including BNL JOIN, BKA JOIN, HASH JOIN, NESTED LOOP JOIN, SEMI JOIN, ANTI JOIN, and OUTER JOIN
    • Multiple subqueries, including conditional subqueries, scalar subqueries, some correlated subqueries, non-correlated subqueries, and derived tables
    • Multiple data types, including Integer, Character, Floating Point, and Time
    • Arithmetic expressions (+, -, *, %, /, |, and &), conditional expressions (<, <=, >, >=, <>, BETWEEN/AND, and IN), logical operations (OR, AND, and NOT), and common functions (Character, Integer, and Time), and aggregation functions (COUNT/SUM/AVG/MIN/MAX)
      NOTE:

      The COUNT aggregate function can only be executed concurrently when innodb_parallel_select_count is disabled.

    • Non-partitioned table queries, and queries for a single partition of partitioned tables
    • ORDER BY, GROUP BY/DISTINCT, LIMIT/OFFSET, WHERE/HAVING, and column projection
    • UNION/UNION ALL queries
    • EXPLAIN statements to view parallel execution plans, including EXPLAIN FORMAT=TREE, EXPLAIN ANALYZE (supported in 2.0.60.241200 and later), and EXPLAIN FORMAT=JSON introduced in MySQL 8.0 and traditional EXPLAIN statements
  • Parallel query is not suitable for the following scenarios:
    • Non-query statements
    • Window functions
    • Triggers
    • Prepared statements
    • Spatial indexes
    • System tables, temporary tables, and non-InnoDB tables
    • Full-text indexes
    • Stored procedures
    • Subqueries that cannot be converted to semi-joins
    • Statements that do not meet the ONLY_FULL_GROUP_BY rules
    • Index Merge statements
    • HASH JOIN operations, during which data overflows to disks
    • Lock queries, such as SERIALIZABLE isolation level, FOR UPDATE or SHARE LOCK
    • Recursive queries
    • WITH ROLLUP
    • Statements with keyword HIGH_PRIORITY
    • No line of data returned in the execution result. (The execution plan shows: Zero limit, Impossible WHERE, Impossible HAVING, No matching min/max row, Select tables optimized away, Impossible HAVING noticed after reading const tables, or no matching row in const table)
    • Columns with type ZEROFILL. Its column values can be optimized to constants.
    • Generated columns, BLOB, TEXT, JSON, and GEOMETRY
    • Spatial functions (such as SP_WITHIN_FUNC)
    • DISTINCT clauses in aggregate functions, such as SUM(DISTINCT), AVG(DISTINCT), and COUNT(DISTINCT)
    • GROUP_CONCAT
    • JSON_ARRAYAGG and JSON_OBJECTAGG
    • User-defined functions
    • STD, STDDEV, and STDDEV_POP
    • VARIANCE, VAR_POP, and VAR_SAMP
    • BIT_AND, BIT_OR, and BIT_XOR
    • set_user_var
    • RAND functions with parameters
    • json_* (such as json_length and json_type)
    • st_distance
    • get_lock
    • is_free_lock, is_used_lock, release_lock, and release_all_locks
    • sleep
    • xml_str
    • weight_string
    • REF functions (VIEW_REF, OUTER_REF, and AGGREGATE_REF)
    • SHA, SHA1, SHA2, and MD5
    • row_count
    • User-related functions (such as user, current_user, session_user, and system_user)
    • extractvalue
    • GeomCollection, GeometryCollection, LineString, MultiLineString, MultiPoint, MultiPolygon, and Polygon
    • MASTER_POS_WAIT
    • Spatial relationship functions, such as MBRContains, MBRCoveredBy, MBRCovers, MBRDisjoint, MBREquals, MBRIntersects, MBROverlaps, MBRTouches, and MBRWithin
    • Point
    • PS_CURRENT_THREAD_ID()
    • PS_THREAD_ID(CONNECTION_ID())
    • WAIT_FOR_EXECUTED_GTID_SET
    • WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS
    • UNCOMPRESS (COMPRESS ())
    • STATEMENT_DIGEST_TEXT
    • Functions BINARY and CONVERT
    • Functions starting with ST_
  • The execution results of parallel queries may be incompatible with that of serial queries.
    • Number of errors or alarms

      If an error or alarm message is displayed during serial queries, the error or alarm message will be displayed in each worker thread during the parallel queries. As a result, the total number of error or alarm messages increases.

    • Precision

      During the parallel queries, if there is a function type in a SELECT statement, additional stored procedures will be generated in the intermediate results. As a result, compared with serial queries, the precision of the floating point part in parallel queries may be different, and the final result may be slightly different.

    • Truncation

      During the parallel queries, if there is a function type in a SELECT statement, additional stored procedures will be generated in the intermediate results. In this process, the calculation result of the function needs to be cached, and data truncation may occur (generally due to data type conversion, for example, covering a floating-point value to a character string). As a result, the final result is different from the serial queries.

    • Sequence of result sets

      Because tasks are executed by multiple worker threads during parallel queries, the sequence of the returned result set may not be consistent with that of serial queries. In the case of a query with LIMIT, this problem is more likely to occur. If fields of GROUP BY are invisible characters, the sequence of the returned result set is also different.

    • UNION ALL result sets

      UNION ALL ignores sort operators. The sequence of the returned result set in parallel execution may be different from that in non-parallel execution. In the case of a query with LIMIT, the result sets are different.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback