~/talk

Performance tuning for Azure Cosmos DB

Talkat NDC Oslo 2024 · 2024-06-10..06-14· [databases]
slides:none on file

Explains concrete tuning moves: choose partition key to avoid cross-partition queries (example 202 GB → ~5 physical partitions because of 50 GB / 10,000 RU per physical partition), use change feed to duplicate data into a second container keyed by product ID to avoid costly scans, prefer point reads when you have partition key+id (point read = 1 RU vs query ≈2.3 RU), use direct mode, singleton client and 64-bit SDK, consider dedicated Gateway caching (dedicated gateway caching → 0 RU for 30 min), and a VS Code extension with ~12k downloads to inspect partitions and metrics.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:36Physical partition basics
  3. 3:26Partition key selection
  4. 5:18Handling multi-project keys
  5. 6:30Change feed and data sync
  6. 8:48Point reads vs queries
  7. 10:28Connection modes
  8. 15:07Integrated cache configuration
  9. 16:04Caching code demonstration
  10. 17:05Query execution and the SDK
  11. 18:35Optimizing .NET applications
  12. 21:18Using the stream API
  13. 22:18Document client optimization
  14. 22:40Consistency levels explained
  15. 23:57Metadata request limits
  16. 26:06Optimizing bandwidth
  17. 26:35Partial document updates
  18. 28:15Patch operations demo
  19. 29:20Indexing basics and types
  20. 31:24Composite index rules
  21. 33:10Composite index examples
  22. 34:43Modifying indexing policies
  23. 37:04Throughput and cost savings
  24. 39:46Priority-based execution
  25. 40:32Closing thoughts
  26. 41:02Cosmos DB studio demo
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.