[03:17:28] <jeremy-> nvm, got there after 20 hack attempts
[06:49:27] <salentinux> hi guys, to do subqueries I use to save intermediate results in an array and then use it with $in operator. The question is, how much data can an array have?
[21:07:36] <USvER> Hi, i have an array of subdocuments. How can i query items containing subdocument with specified fileds and can contain other fields.
[21:13:49] <USvER> So if i have collection with two documents: {subDocs:[{a:'1',b:'2'},{a:'2',b:'2'}]} and {subDocs:[{a:'1',b:'2'},{a:'2',b:'1'}]}. How can i query for documents that contain subdocument with {a:'2',b:'2'} i this case only first document... and {a:'2',b:'1'} wich will be only second....
[21:15:18] <USvER> Fon now if i test for {subDocs.a:'2', subDocs.b:'2'} i will get both documents...
[21:17:38] <USvER> i nead some sort of DotNotation mixed with subdocument query... wich will test for EXACT match....
[21:19:20] <USvER> I mean i don't need that "EXACT" match thing.... i just need to test subdocument for multiple fields...
[21:35:21] <Zelest> USvER, i'll see if I can figure it out. :-)
[21:35:50] <USvER> I think this one is really tough
[21:38:36] <USvER> I really need this... and if there is no answer i would need to go relational way... for me this is like startover
[21:40:03] <fommil> is there a function which will sanitise a (Java) String – intended for literal matching in an aggregate – so that it can't contain any malicious characters?
[21:40:47] <Zelest> USvER, I'm more or less a newbie, but yeah, trying to figure it out :)
[21:41:54] <USvER> Zelest, i'm newbie too... and i guess this one requires more experience in mongo... Thank you for your help....
[21:44:04] <Zelest> Hmms, might be me who's retarded, but I thought that $elemMatch was the right tool here..
[21:44:11] <Zelest> but it doesn't seem to work the way I expect it to.