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

Summary


In this chapter we have learned how to influence the way DocumentDB indexes our data. We changed index paths and precision and changed the index mode that is used. We saw how to use spatial data and how to explicitly turn indexing on and off for documents.

Next, we saw how to partition our data and how to use the designated resolvers to enable proper partitioning. Partitioning is useful to distribute the load in case we run out of request units or in case we run out of storage.

We have learned the basics of transactions for DocumentDB and we saw how transactions are handled inside a stored procedure. Finally we have learned how consistency levels can be used and the impact of the different types of consistency levels.

The next chapter will outline an IoT scenario and how DocumentDB can play a role. It will also demonstrate how to combine DocumentDB together with other Azure service offerings to build a mature enterprise solution.