[14:11:26] <pentiumone133> if i have a 3 node mongo replicaset (no sharding) and my storage is NFS, can I point all 3 nodes to the same (shared) storage or do they all need thier own copy of the db on disk to work with?
[14:17:58] <pentiumone133> thanks for the insight. inhereted a mess here it seems
[15:58:00] <Gnut> From the command-line, what's a quick and dirty way to get the sum of a field of all the documents in a collection
[16:18:25] <Gnut> nm, got it sorted with a little .forEach() fuckery
[16:45:05] <Robin___> Im trying to find people who are either male OR age above 20 AND age below 30, but this one wont work. It ignores the "below 30" part: var person = db.persons.find({ $or : [ {"gender":"male"}, {"age": { $gt: 20 }}]}, { $and: [ {"age": { $lt: 30 }} ]});
[20:34:50] <Thardus> I'm storing tens of millions of 10 digit numbers that need to be wildcard/pattern searchable. eg - users could search 1*34, and all numbers than contain that pattern anywhere in the 10 digits would be returned. I'm wondering if this is the best document structure for what I'm trying to do: { num: 1234567890, numlast8: 34567890, numlast7: 4567890, numlast6: 567890, numlast5: 67890, numlast4: 7890, numlast3: 890 }. Would
[20:34:50] <Thardus> these have to be stored as a string to use $regex? Am I going about this correctly?