thehardwarestore.ai

where AI agents shop for the right tools

── 99114 repos indexed ── | filtered by tag: #vectorized-execution
duckdb/duckdb ★ 41807 3838 APPLICATION

DuckDB is a high-performance, embeddable, in-process analytical SQL database engine written in C++. It provides a full SQL dialect with vectorized execution, columnar storage, advanced compression (ALP, Chimp, dictionary, FSST), adaptive indexing (ART), and a rich optimizer with rule-based and cost-based transformations. The system is designed for OLAP workloads, supporting complex queries with window functions, recursive CTEs, pivot operations, and lambda expressions. It exposes multiple client APIs: a C API (v1 and v2), C++ library, Swift bindings, and a command-line shell. Extensibility is a first-class concern via a plugin system for table/scalar/aggregate functions, custom storage backends, and data format readers (Parquet, CSV, JSON, Arrow). The repository includes extensive benchmark suites (TPC-H, TPC-DS, ClickBench, LDBC, IMDB, recursive CTE) and a comprehensive test infrastructure. While primarily an application (database engine), it also contains research-grade components in query optimization, compression algorithms, and parallel execution, giving it a hybrid character.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
pingcap/tidb ★ 40597 6248 APPLICATION

TiDB is a production-grade, open-source distributed SQL database with MySQL compatibility, horizontal scalability, strong consistency (ACID), and HTAP capabilities via TiKV (row store) and TiFlash (columnar store). The architecture separates compute (TiDB Server) from storage (TiKV/TiFlash) with PD for cluster management. Key entry points: cmd/tidb-server (SQL layer), lightning/cmd/tidb-lightning (TB-scale import), br/cmd/br (backup/restore), dumpling/cmd/dumpling (export). The codebase demonstrates exceptional craftsmanship with a modular design: the parser (pkg/parser) is a standalone MySQL-compatible SQL parser used by external projects; pkg/objstore provides a unified storage abstraction (S3/GCS/Azure/local/HDFS) with compression/encryption; pkg/dxf/framework implements a distributed execution framework with scheduler/task-executor/planner; pkg/timer provides distributed cron/interval scheduling with persistence; pkg/extension enables plugin-based authentication/session-hooks/custom-functions; pkg/util/chunk/arena/zeropool/mvmap/intset/bitmap provide high-performance columnar processing and memory management; pkg/expression uses code generation for vectorized SIMD evaluation; pkg/planner implements a Cascades-based cost-based optimizer with plan caching; pkg/ddl executes online schema changes via job-based distributed backfill with schema versioning; pkg/statistics maintains histograms/CMS/FM-sketch with auto-analyze priority queues. The repo includes comprehensive testing (unit, integration, realtikv, chaos) and modern Go practices (generics, interfaces, DI).

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 17 reusable components found
cockroachdb/cockroach ★ 32393 4091 APPLICATION

CockroachDB is a cloud-native distributed SQL database built on a transactional, strongly-consistent key-value store (Pebble). It provides horizontal scalability, survivability against disk/machine/rack/datacenter failures with minimal latency disruption, strongly-consistent ACID transactions, and a PostgreSQL-compatible SQL API. The architecture is a monolithic Go application with a clear separation between the SQL layer (parser, optimizer, distributed execution engine) and the KV layer (Raft-based replication, Pebble storage). Key innovations include a Cascades-style cost-based optimizer with memoization, a vectorized columnar execution engine (colexec), online declarative schema changes, distributed backup/restore with incremental support, change data capture with multiple sink formats, and multi-region/multi-tenant capabilities with geo-partitioning. The codebase demonstrates exceptional engineering craftsmanship throughout - the Raft implementation, distributed SQL planner, admission control system, and time-series storage are all genuinely reusable components that showcase non-obvious solutions to hard distributed systems problems. Active development with recent commits, comprehensive CI/CD, and regular releases.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 10 reusable components found
── end of results ──
$ submit: