Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Amazon DynamoDB - The Definitive Guide

You're reading from   Amazon DynamoDB - The Definitive Guide Explore enterprise-ready, serverless NoSQL with predictable, scalable performance

Arrow left icon
Product type Paperback
Published in Aug 2024
Publisher Packt
ISBN-13 9781803246895
Length 414 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Aman Dhingra Aman Dhingra
Author Profile Icon Aman Dhingra
Aman Dhingra
Arrow right icon
View More author details
Toc

Table of Contents (24) Chapters Close

Preface 1. Part 1:Introduction and Setup
2. Chapter 1: Amazon DynamoDB in Action FREE CHAPTER 3. Chapter 2: The AWS Management Console and SDKs 4. Chapter 3: NoSQL Workbench for DynamoDB 5. Part 2: Core Data Modeling
6. Chapter 4: Simple Key-Value 7. Chapter 5: Moving from a Relational Mindset 8. Chapter 6: Read Consistency, Operations, and Transactions 9. Chapter 7: Vertical Partitioning 10. Chapter 8: Secondary Indexes 11. Part 3: Table Management and Internal Architecture
12. Chapter 9: Capacity Modes and Table Classes 13. Chapter 10: Request Routers, Storage Nodes, and Other Core Components 14. Part 4: Advanced Data Management and Caching
15. Chapter 11: Backup, Restore, and More 16. Chapter 12: Streams and TTL 17. Chapter 13: Global Tables 18. Chapter 14: DynamoDB Accelerator (DAX) and Caching with DynamoDB 19. Part 5: Analytical Use Cases and Migrations
20. Chapter 15: Enhanced Analytical Patterns 21. Chapter 16: Migrations 22. Index 23. Other Books You May Enjoy

Understanding item collections

It is likely that not all access patterns for an application would only deal with a single item all the time. Several access patterns for a modern application could require fetching multiple items related to each other in some manner. Like a simple key value acting in a singleton manner, items having the same partition key could have different sort key values, such that for each item, the partition key and sort key combination remains unique across the table data.

A group of items having the same partition key value but different sort key values is called an item collection. An example of an item collection would be maintaining the version history of all mutations performed for a user item or a game state object. If I were to allow my users to request a history of all mutations for their profile, I would store the profile data in such a way where the partition key for the item collection is user_id and the sort key could be an epoch timestamp or ISO...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image