PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 22nd of March, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[09:29:42] <Derick> that sounds about right
[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:11:39] <Derick> they need their own copy
[14:11:42] <Derick> also: avoid NFS
[14:11:56] <pentiumone133> good to know, whys that ?
[14:12:11] <Derick> it's not really fast enough, and there can be lots of issues regarding locking
[14:12:39] <pentiumone133> even a hosted NFS type setup ala EFS on AWS ?
[14:13:18] <Derick> any reason you just don't use AWS block storage?
[14:13:59] <pentiumone133> EFS is set and forget...dont need to ever expand anything
[14:14:51] <pentiumone133> cheaper i believe too
[14:16:18] <Derick> from what I just read, it's 3 times the price... a quick google suggest you really want EBS
[14:16:23] <Derick> but, that's all I know here
[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 }} ]});
[16:45:08] <Robin___> thx
[17:15:18] <Robin___> nvm figured it out
[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?