Book Image

MongoDB High Availability

By : Afshin Mehrabani
Book Image

MongoDB High Availability

By: Afshin Mehrabani

Overview of this book

Table of Contents (17 chapters)
MongoDB High Availability
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding profiling


To deal with poor performance in an application, we need a tool to find the problems and address the issues. In this chapter, we will focus on profiling, which is a popular method to debug and find the areas that affect performance in a program.

Note

In software engineering, profiling (program profiling and software profiling) is a form of dynamic program analysis that measures, for example, space (memory) or time, the complexity of a program, the use of particular instructions, or the frequency and duration of function calls. The most common use of profiling information is to aid program optimization. For more information, please visit http://en.wikipedia.org/wiki/Profiling_(computer_programming).

In the next sections, you will learn the basic considerations and configurations to enable and use the profiling facility in MongoDB.

Utilizing profiling

Writing an optimized query is one of the most significant factors to maximize performance in a database engine. When you...