PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 7th of January, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:52:50] <LogicAside> I have a collection of documents structured like {"random_string": ["tag1", "tag2"]}. Without knowing random_string, how do I find all random_string that are marked as tag1? Is mongodb even capable of this?
[01:53:18] <LogicAside> It would be simple enough in the programming language of my choice, but I mean specifically through a query via find() or the like
[05:21:35] <yelji> hello
[05:22:59] <yelji> someone help me clearing cache without restarting mongodb service... I have a collection with 10 fields indexed.. when I do any operation inserting or querying.. memory usage is getting increased
[09:00:13] <Derick> there is on such thing as clearing the cache yelji
[09:00:59] <Derick> LogicAside: you can't. You should not use value as keys (i.e., the "random_string"). You *might* get away with it using the Aggregation Framework and $objectToArray perhaps
[09:01:05] <Derick> (or $arrayToObject)