ts-db-perf
CommunityMake TypeScript database code faster and safer.
Software Engineering#typescript#caching#transactions#pagination#database optimization#n+1 queries#race condition prevention
Authorwidnyana
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It fixes slow TypeScript backend database access by removing inefficient query patterns and preventing correctness issues like race conditions and flaky retries.
Core Features & Use Cases
- Eliminate N+1 queries by rewriting loops into joins/includes or batched IN/JOIN strategies, so list endpoints don’t explode into hundreds of round-trips.
- Improve performance-critical queries by selecting only needed fields, adding pagination, and tightening async execution with parallel reads where safe.
- Harden writes and concurrency using transactions, chunked batch updates, optimistic locking/atomic updates, and idempotency to prevent double-processing.
Quick Start
Optimize the attached TypeScript database code to remove N+1 queries, add safe pagination and caching where appropriate, and prevent race conditions or non-atomic updates.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: ts-db-perf Download link: https://github.com/widnyana/eyay-toolkits/archive/main.zip#ts-db-perf Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.