Book Image

Learning Azure DocumentDB

By : Riccardo Becker
Book Image

Learning Azure DocumentDB

By: Riccardo Becker

Overview of this book

Learning DocumentDB adopts a practical, step-by-step approach to help you learn the basics of DocumentDB and use your new-found abilities in real-life scenarios and enterprise solutions. We start with the absolute basics, such as setting up a DocumentDB environment, and guide you through managing your databases, and executing simple and complex queries. Next, we explain how to work with DocumentDB using the open REST protocol, and demonstrate how JavaScript works with DocumentDB. We’ll also show you how to authenticate and execute queries. Moving on, you’ll find out how to use DocumentDB from within Node.js to kick-start your Node.js projects. Next, you’ll discover how to increase the performance of your DocumentDB database and fine-tune it. Finally, you’ll get to grips with using DocumentDB in conjunction with other services offered from the Microsoft Azure platform.
Table of Contents (15 chapters)
Learning Azure DocumentDB
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. Advanced Techniques

This chapter describes advanced techniques for the management of DocumentDB. We can use these techniques to optimize the way our documents are queried. When our application and data grows, we need to partition our data and spread it across multiple collections. When traffic increases, measuring performance is necessary to identify bottlenecks in our DocumentDB architecture.

In this chapter, we will:

  • Learn about indexes and how to use them effectively

  • Have a look at partitions and partitioning techniques

  • Measure performance

  • Learn about transactions

  • See how consistency levels can be set and how they affect DocumentDB