mongo_missing_indexes 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mongo/missing_indexes.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6060d609b0a935d6a6db285f4226515b41d6fba9
|
4
|
+
data.tar.gz: 26a808b103cb4bceafb18e9ba71224029b4709f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebbe19f3e522106739bc3b1c7177ba21bdd40aef680f6a4f40126cf9fbe0bbfc0d95ba1f63b298867187ea56a51d5f68116041d06e14fdac9dbfe5a0ab3c687c
|
7
|
+
data.tar.gz: 76c1b839175f5297e7ec26ccd2e6bb60094c2f73c1bdb35ff1e87f29023850ed467c346b6df880d123024395a3d4f83c1108b4e1acfd84dad899d875550c9ed7
|
@@ -67,7 +67,8 @@ class Mongo::MissingIndexes
|
|
67
67
|
explain_args = args
|
68
68
|
end
|
69
69
|
|
70
|
-
|
70
|
+
# ignore the block, since collection.find({}, &block) returns nil
|
71
|
+
explain = collection.send("#{explain_method_name}_aliased_from_missing_indexes", *explain_args).explain
|
71
72
|
non_index_query = false
|
72
73
|
|
73
74
|
if explain['stats']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_missing_indexes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Detect missing indexes in mongo queries
|
14
14
|
email: scott@railsnewbie.com
|