{"repo":"earth-app/CollegeDB","free":true,"listed":false,"github":"https://github.com/earth-app/CollegeDB","clone":"git clone https://github.com/earth-app/CollegeDB.git","description":"🏎️ Universal Database Sharding Router for Horizontal Scaling","language":"TypeScript","stars":30,"topics":["d1","database","earth-app","kv","mysql","postgresql","redis","sharding","sql","valkey"],"license":"MIT","category":"databases-storage","readme_excerpt":"CollegeDB Universal Database Horizontal Sharding Router A TypeScript library for true horizontal scaling of SQLite-style databases primarily for Cloudflare using D1 and KV, with additional provider adapters for Redis/Valkey KV and PostgreSQL/MySQL/SQLite SQL backends, plus Drizzle ORM interop across those SQL providers. CollegeDB distributes your data across multiple database shards, with each table's records split by primary key across different database instances. Table of Contents - Why CollegeDB - Features - Getting Started - Benchmark Suite - Provider Adapters - NuxtHub + Drizzle Recipes - Sandbox Benchmarks (Docker Compose) - In-Memory Providers for Testing & Development - Basic Usage - Multi-Key Shard Mappings - Drop-in Replacement for Existing Databases - Troubleshooting - Cross-Shard Pagination Behavior - Database Query Best Practices - API Reference - Architecture - Cloudflare Setup - Monitoring and Maintenance - Performance Analysis - Advanced Configuration - Quick Reference - Contributing - License Why CollegeDB CollegeDB implements data distribution where a single logical table is physically stored across multiple D1 databases: This allows you to: - Break through D1's single database limits by spreading data across many databases - Improve query performance by reducing data per database instance - Scale geographically by placing shards in different regions - Increase write throughput by parallelizing across multiple database instances Features - Automatic query r","default_branch":null,"files":null,"tree":[],"storefront":"/r/earth-app","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/earth-app/CollegeDB/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}