Permalink
Browse files

update for latest features

  • Loading branch information...
1 parent 940c7e2 commit f1f0bfc4f4b50df0ec756cb8de25a843dd70e27c @tmm1 committed Aug 23, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 rmongo.rb
View
6 rmongo.rb
@@ -276,12 +276,12 @@ def desc
end
- # in queries # XXX why does this match objects that have no value for n
+ # in queries
mongo.find :n.in([ 1,3,5 ]) do |results|
end
- # sorting # XXX requires an index to sort
+ # sorting (sorting is faster with an index)
mongo.find({}, :n.desc) do |results|
end
@@ -374,7 +374,7 @@ def desc
--------------------------------------------------------------------------------
-FIND {:n=>{:$in=>[1, 3, 5]}} => # XXX why does this match objects that have no value for n
+FIND {:n=>{:$in=>[1, 3, 5]}} =>
[{:_id=>"000000000000000000000001", :hello=>"world"},
{:_id=>"000000000000000000000002",

0 comments on commit f1f0bfc

Please sign in to comment.