nosql-modeling
/nosql-modeling
Modeluje dane NoSQL od wzorców dostępu, z dyscypliną single-table i denormalizacji, przy projektowaniu pod magazyn dokumentów lub klucz-wartość.
- Autor
- Amey-Thakur ↗
- Repozytorium
- AI-SKILLS ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 05.09.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 05.09.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Modeluje dane NoSQL od wzorców dostępu, z dyscypliną single-table i denormalizacji, przy projektowaniu pod magazyn dokumentów lub klucz-wartość.
Oryginalny opis (EN)
Model NoSQL data from access patterns first, with single-table and denormalization discipline. Use when designing for a document or key-value store, or when a relational mindset is fighting a NoSQL database.
Jak działa
- Method
- Boundaries
Podgląd SKILL.md
--- name: nosql-modeling description: Model NoSQL data from access patterns first, with single-table and denormalization discipline. Use when designing for a document or key-value store, or when a relational mindset is fighting a NoSQL database. --- # NoSQL modeling Relational modeling starts from the data and normalizes; NoSQL modeling starts from the queries and shapes data to serve them. Bringing relational habits (normalize everything, join at read time) to a NoSQL store produces slow, expensive designs; the discipline is inverting the process. ## Method 1. **List the access patterns before designing anything.** Every query the application will make: get-user-by-id, list-orders-for-user, find-active-sessions. In NoSQL the data model is designed *for* these patterns, so they must be known first (unlike relational, where you can query any shape later: see the OLTP flexibility of schema-design). An access pattern discovered after launch may require a data-model change, not just a new query. 2. **Denormalize deliberately, own the consequences.** Duplicate data so a query reads from one place instead of joining (embed the order items in the order document, store the author name with the post): reads get fast and cheap, but updates must now maintain every copy (see the update-anomaly cost in database-normalization). The trade is read-simplicity for write-complexity: chosen, not accidental. 3. **Design keys for the query.** Partition/hash key spreads data and is queried by equality; sort/range key enables ranges and ordering within a partition (see data-partitioning's key selection). Composite keys and secondary indexes serve additional patterns. The key design *is* the query capability; get it wrong and the query you need becomes a full scan. 4. **Consider single-table design where the store rewards it.** In some stores (DynamoDB-class), putting multiple entity types in one table with a shared key scheme lets one query fetch related items together (a user and their orders in one request): powerful and dense, but a real learning curve. Use it where the access patterns and the store call for it, not by default. 5. **Model relationships by embedding or referencing, per access.** Embed when the related data is always fetched together and bounded in size (order items in an order); reference (store an ID, fetch separately) when the related data is large, shared, or independently queried. The one-to-many and many-to-many patterns each have embed-vs-reference tradeoffs decided by how they are read. 6. **Accept eventual consistency where the store gives it.** Many NoSQL stores default to eventual consistency for scale (see consistency-models); design so reads tolerate slight staleness, use strongly-consistent reads only where correctness demands (and pay the cost), and handle the lack of multi-item transactions (or use the store's limited transaction support deliberately: see delivery-guarantees, idempotency-keys). ## Boundaries - NoSQL is not "better than SQL"; it trades query flexibility and relational integrity for scale and access-pattern-optimized performance. If you need flexible ad-hoc queries and strong relational integrity, a relational database is the right tool (see schema-design, transactions-isolation). - "NoSQL" spans very different stores (document, key-value, wide-column, graph): the access-pattern-first principle is common, the modeling specifics differ hugely per store. Model to your actual database, not to "NoSQL". - Denormalization and single-table designs are powerful and unforgiving of wrong access-pattern predictions; they reward deep upfront analysis and punish "we'll figure out queries later".
Wersje
W bazie nie ma innych skilli o nazwie nosql-modeling.
Migawka bazy z 13.11.2026 · wersja paczki fad9c3ce3edd (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100modeling-nosql-data
Pomaga projektować modele danych NoSQL, w tym strukturę dokumentów i optymalizację schematu bazy. - 100modeling-nosql-data
Pomaga projektować modele danych NoSQL, w tym strukturę dokumentów i optymalizację schematu bazy. - 90catalyst-nosql
Obsługuje Catalyst NoSQL, magazyn klucz-wartość z typowanymi elementami budowanymi przez NoSQLItem i wymaganym kluczem partycji. - 90nosql-expert
Podaje wzorce rozproszonych baz NoSQL dla Cassandra i DynamoDB: modelowanie od zapytań, projekt single-table i strategie kluczy partycji. - 95data-nosql-database
Dobiera typ bazy NoSQL i projektuje dane w MongoDB, DynamoDB, Cassandrze lub CosmosDB, z kompromisami spójności według CAP. - 90operational-datastore-selection-relational-and-nosql
Prowadzi wybór między relacyjnymi magazynami operacyjnymi, jak MySQL, a NoSQL: dokumentowymi, klucz-wartość, kolumnowymi lub opartymi na cache, dla danych aplikacji i potoków.