Module: Mongo::Collection::View::Explainable
- Included in:
- Mongo::Collection::View, Aggregation
- Defined in:
- lib/mongo/collection/view/explainable.rb
Overview
Defines explain related behaviour for collection view.
Constant Summary collapse
- QUERY_PLANNER =
The query planner verbosity constant.
'queryPlanner'.freeze
- EXECUTION_STATS =
The execution stats verbosity constant.
'executionStats'.freeze
- ALL_PLANS_EXECUTION =
The all plans execution verbosity constant.
'allPlansExecution'.freeze
Instance Method Summary collapse
-
#explain ⇒ Hash
Get the explain plan for the query.
Instance Method Details
#explain ⇒ Hash
Get the explain plan for the query.
47 48 49 |
# File 'lib/mongo/collection/view/explainable.rb', line 47 def explain self.class.new(collection, selector, .merge()).first end |