parallelism

Optimize OLAP query execution with morsel-driven parallelism and OpenMP.

71|8|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/SolidLao/GenDB --skill parallelism
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: parallelism
Source: https://github.com/SolidLao/GenDB/tree/main/.claude/skills/parallelism
Command: npx skills add https://github.com/SolidLao/GenDB --skill parallelism

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the critical need for efficient multi-core processing in OLAP query execution, ensuring that applications fully leverage available hardware for maximum performance.

Core Features & Use Cases

  • Optimized Parallelism Strategies: Implements morsel-driven parallelism, OpenMP, thread-local aggregation, and parallel join techniques.
  • Performance Tuning: Provides guidance on contention analysis, morsel size calculation, and SIMD vectorization for fine-grained optimization.
  • Use Case: When executing complex analytical queries on large datasets, this Skill ensures that the processing is distributed across all available CPU cores, drastically reducing query completion times.

Quick Start

Load the parallelism skill to optimize multi-threaded query code for OLAP workloads.

Frequently Asked Questions about parallelism

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize OLAP query execution for multi-core processors?

Morsel-driven parallelism breaks large data processing tasks into small chunks assigned dynamically to worker threads. This prevents thread starvation and ensures efficient CPU core utilization during complex analytical OLAP workloads.

How do I calculate morsel size and analyze contention for parallel hash joins?

SIMD vectorization and thread-local aggregation accelerate OLAP workloads by processing multiple data elements simultaneously and eliminating shared memory locks. This combination maximizes CPU instruction throughput and prevents bottlenecks during parallel query execution.

Does OpenMP work with morsel-driven parallelism for large dataset processing?

OpenMP integrates with morsel-driven parallelism to manage multi-core thread scheduling for large dataset processing. This combination provides fine-grained performance tuning for complex analytical queries across distributed CPU resources.

What are the limitations of thread-local aggregation in parallel query execution?

Thread-local aggregation in parallel query execution requires sufficient memory per thread to avoid spills and requires a final merge phase. Excessive thread counts can increase memory overhead and slow down the final aggregation step.