Intelligent task scheduling during query processing in a database system
By employing intelligent task scheduling that optimizes task overlap based on compute and I/O resources, the database system addresses inefficiencies in query processing, leading to enhanced performance and resource utilization.
Patent Information
- Application Number
- PCT/IB2023/057660
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-02-06
AI Technical Summary
Existing database systems face inefficiencies in query processing due to suboptimal task scheduling, leading to resource underutilization and increased query execution times, especially for analytical queries.
Implement intelligent task scheduling during query processing by breaking down query plans into fine-grained tasks and scheduling them based on compute capacity, CPU cycles, I/O, and memory bandwidth, ensuring maximum overlap between CPU-intensive and I/O-intensive tasks.
This approach enhances resource utilization, reduces query execution times, and minimizes tasks stuck on I/O operations, resulting in improved performance for analytical queries in database systems with multiple shards.
Abstract
Description
[0001] Intelligent Task Scheduling During Query Processing in a Database System
[0002] For a database or data store having multiple shards, shard-level data is loaded into the L2 / L3 cache or RAM (Random Access Memory) of the query processing nodes as per the best fit approach after filtering maximum possible rows or tuples from the shard by performing a predicate push down when data is being read to load into the query processing nodes. Further especially for analytical queries, the query plan is broken down into a tree-like structure depicting the fine-grained tasks which can be performed in parallel and others which are sequential. Now based on the compute capacity (or processing cores), CPU (Central Processing Unit) cycles, I / O, memory bandwidth, etc. allocated for the query processing thread serving the analytical query, the fine-grained tasks are scheduled such that the paths or sub-tree structures or task order sequences are followed but there is maximum overlap between the CPUintensive and I / O intensive tasks so that there are minimum or preferably no tasks which are stuck on I / O resulting in better utilisation of system resources.
Claims
Following are the claims for this invention :-1. For a database or data store having multiple shards, shard-level data is loaded into the L2 / L3 cache or RAM (Random Access Memory) of the query processing nodes as per the best fit approach after filtering maximum possible rows or tuples from the shard by performing a predicate push down when data is being read to load into the query processing nodes.
2. Further especially for analytical queries, the query plan is broken down into a tree-like structure depicting the fine-grained tasks which can be performed in parallel and others which are sequential.
3. Now based on the compute capacity (or processing cores), CPU (Central Processing Unit) cycles, I / O, memory bandwidth, etc. allocated for the query processing thread serving the analytical query, the fine-grained tasks are scheduled such that the paths or sub-tree structures or task order sequences are followed but there is maximum overlap between the CPU-intensive and I / O intensive tasks so that there are minimum or preferably no tasks which are stuck on I / O resulting in better utilisation of system resources.
Citation Information
Patent Citations
Methods and systems for hardware acceleration of database operations and queries for a versioned database based on multiple hardware accelerators
US20120117027A1
Cited By
A table inference context routing method and system for a locally deployed language model
CN122713451A