webinar: the visual query profiler and mongodb compass

21
The Visual Query Profiler and MongoDB Compass Ronán Bohan Solutions Architect at MongoDB [email protected] April 2016

Upload: mongodb

Post on 09-Feb-2017

1.054 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Webinar: The Visual Query Profiler and MongoDB Compass

The Visual Query Profilerand

MongoDB Compass

Ronán BohanSolutions Architect at MongoDB

[email protected]

April 2016

Page 2: Webinar: The Visual Query Profiler and MongoDB Compass

Agenda

• Introduction

• Live Demo

• Q&A

Page 3: Webinar: The Visual Query Profiler and MongoDB Compass

Introduction – Part 1

What’s in our Database?

Page 4: Webinar: The Visual Query Profiler and MongoDB Compass

Documents are Rich Data Structures{ first_name: ‘Paul’, surname: ‘Miller’, age: 35, city: ‘London’, location: [45.123, 47.232],

profession: [‘banking’, ‘finance’, ‘trader’], cars: [ { model: ‘Bentley’, year: 1973, value: 100000, … }, { model: ‘Rolls Royce’, year: 1965, value: 330000, … } ]}

Fields can contain an array of sub-documents

Fields

Typed field values

Fields can contain arrays

String

Number

Geo-Coordinates

Page 5: Webinar: The Visual Query Profiler and MongoDB Compass

MongoDB

• Documents are stored in Collections

• Collections are grouped into Databases

• MongoDB has a Flexible Schema,i.e. document structure is not enforced

Page 6: Webinar: The Visual Query Profiler and MongoDB Compass

MongoDB

• So how do we know what we have in our database?

Page 7: Webinar: The Visual Query Profiler and MongoDB Compass

Mongo Shell

Page 8: Webinar: The Visual Query Profiler and MongoDB Compass

Mongo Shell

Page 9: Webinar: The Visual Query Profiler and MongoDB Compass

MongoDB Compass

Page 10: Webinar: The Visual Query Profiler and MongoDB Compass

Introduction – Part 2

So now we know what’s in our Database,how can we measure performance

and visualize the results?

Page 11: Webinar: The Visual Query Profiler and MongoDB Compass

Performance

• Performance is measured by using a Database Profiler

• MongoDB contains a built in profiler

Page 12: Webinar: The Visual Query Profiler and MongoDB Compass

Profiler

• Stores information about operations

• Information is stored in the system.profile collection (in the local database)

• Three options:off, log slow operations, log all operations

Page 13: Webinar: The Visual Query Profiler and MongoDB Compass

What’s stored?

• Each profile document contains–The operation type–The operation parameters–The namespace–The execution time–The client address–Various other details and metrics

Page 14: Webinar: The Visual Query Profiler and MongoDB Compass

Profiler

• So how do we see this profile data?

Page 15: Webinar: The Visual Query Profiler and MongoDB Compass

Mongo Shell

Page 16: Webinar: The Visual Query Profiler and MongoDB Compass

What about…

• Using Compass?

Page 17: Webinar: The Visual Query Profiler and MongoDB Compass

Visual Query Profiler

Page 18: Webinar: The Visual Query Profiler and MongoDB Compass

Demo time!

Page 19: Webinar: The Visual Query Profiler and MongoDB Compass

Where do I get these tools?

• Compass is available for evaluation purposes: https://www.mongodb.com/products/compass

• Visual Query Profiler is available via Cloud Manager Premium

• Both products are included with MongoDB Professional or MongoDB Enterprise Advanced

Page 20: Webinar: The Visual Query Profiler and MongoDB Compass

Q & A

Page 21: Webinar: The Visual Query Profiler and MongoDB Compass

Thank You!

Ronán BohanSolutions Architect at MongoDB

[email protected]