nosql-expert

Design query-first Cassandra and DynamoDB schemas with partition key strategies.

70|42|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/tranhieutt/software_development_department --skill nosql-expert-tranhieutt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nosql-expert
Source: https://github.com/tranhieutt/software_development_department/tree/main/.claude/skills/nosql-expert
Command: npx skills add https://github.com/tranhieutt/software_development_department --skill nosql-expert-tranhieutt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill codifies the mental models and checklist needed to avoid performance disasters when modeling Cassandra or DynamoDB systems and ensures teams focus on access patterns instead of relational habits.

Core Features & Use Cases

  • Query-first mindset: Walks through listing entities, access patterns, and designing tables around specific lookups so you never add ad-hoc queries later.
  • Partition and sort key strategies: Explains high-cardinality partition keys, clustering/sort key ordering, and how to shard or use GSIs/LSIs to maintain even traffic and efficient ranges.
  • Single-table and denormalization guidance: Covers adjacency list layouts, deduplication trade-offs, and handling duplication through eventual consistency checklists so a DynamoDB table can serve profiles and orders with one request.
  • Use Case: Combine these tactics to design a customer order service that reads profiles, orders, and timelines with fixed capacity units across DynamoDB and Cassandra.

Quick Start

Ask this skill to craft a query-first schema for a DynamoDB table serving customer profiles and order histories.

Frequently Asked Questions about nosql-expert

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

FAQPage Schema
What is single-table design in DynamoDB and when do I need it?

Single-table design in DynamoDB is a modeling approach where multiple entities share one table to serve complex access patterns efficiently. You need it when your distributed workloads require fetching profiles, orders, and timelines in a single request without ad-hoc queries.

How do I design a query-first schema for Cassandra and DynamoDB?

To design a query-first schema for Cassandra and DynamoDB, list all application entities and their specific access patterns first. Structure partition keys and clustering or sort keys strictly around those known lookups to ensure efficient ranges and even traffic distribution.

How do I avoid hot partitions in distributed databases like Cassandra?

Avoid hot partitions in Cassandra by selecting high-cardinality partition keys and applying sharding strategies. This maintains even traffic distribution across the cluster, preventing individual nodes from becoming performance bottlenecks during production workloads.

Does single-table modeling work for both Cassandra and DynamoDB architectures?

Yes, single-table modeling applies to both Cassandra and DynamoDB architectures. It relies on denormalization, adjacency list layouts, and careful partition and clustering key strategies to serve fixed capacity units across distributed workloads.

What are the consistency and performance trade-offs when using DynamoDB GSIs and LSIs?

DynamoDB GSIs and LSIs impact consistency and performance trade-offs by allowing flexible query patterns at the cost of eventual consistency for GSIs and strict size limits for LSIs. Careful sort key ordering and deduplication checklists manage these trade-offs.

When should I not use a single-table design approach for NoSQL?

You should not use a single-table design approach when your access patterns are highly unpredictable or require complex relational joins. Ad-hoc querying breaks the query-first model, making denormalization overhead outweigh the read performance benefits.