PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 20th of November, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[17:11:30] <mun24> hi
[17:12:04] <mun24> data insertion takes too long
[17:33:30] <mun24> Need some help with data insertion
[17:33:51] <zell> hello, is there a tool similar to "redis-cli monitor" for mongo ?
[17:34:31] <zell> i mean i could increase the profile level to 2 and tail the mongo logs
[17:35:13] <zell> but I would like to only change the profiling level for the session of mongo (cli)
[17:35:31] <zell> and not bother reseting it every time i enter it or leave it
[17:36:14] <Derick> zell: yes, there is mongostat and mongotop, which would do something similar-ish
[17:36:36] <zell> Derick: yeah but mongo stat and mongotop flood my terminal
[17:37:06] <zell> (it's not refreshing the view like top, it's actually re-printing without clearing)
[17:37:32] <zell> (also i don't get the precise query, just the stat related to it)
[17:39:29] <zell> Derick: this is what redis-cli monitor look like: https://puu.sh/C4XgT/aa7c5546b8.png
[17:48:05] <zell> the closest i got to what i'm looking for is with db.setLogLevel(), but it print me big chunk of log, and also I have to set different log level at the beginning of the session, and reset them before i leave
[20:07:41] <h0d0r> Hi everyone - I am trying to use a query document in order to find a street name in array of addresses. The nested nature of the document makes it very hard for me to structure my query though.
[20:07:55] <h0d0r> "addresses" is the key under which the address array can be found, so what I did was: {find: "myCollection", filter: {addresses.street: { \$regex: /My Street Name/}} }
[20:08:27] <h0d0r> Which didn't work at all, because addresses.street is not accepted syntax
[20:08:50] <h0d0r> Do you guys know how I should structure this query document?
[20:13:49] <Derick> 'addresses.street'
[20:13:52] <Derick> use quotes
[20:14:01] <Derick> but, why do you need a regular expression?
[20:17:48] <h0d0r> @Derek you are right it works with quotes!!!
[20:18:02] <h0d0r> @Derick thank you so much
[20:18:19] <h0d0r> I am using regex so I can make use of case insensitivity
[20:18:27] <h0d0r> which in my case can be an issue
[20:18:43] <h0d0r> $eq wouldn't let me do that as far as I know
[20:35:37] <NaN> Using mongoimport, how can I generate _id for some embed documents?
[21:09:27] <h0d0r> @Derick do you also by any chance know how to add multiple filters to a query document? I am now trying do use something like this:
[21:09:28] <h0d0r> {find: "myCollection", filter: {'addresses.streetName': { $regex: /'My street name'/i }, {'addresses.houseNumber': { $eq: /'5'/} }}}
[21:09:45] <h0d0r> but it doesn't fit the syntax for some reason