PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Friday the 2nd of August, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[07:30:09] <ThomasCrown> I have a question about Mongoose. When defining an array in a model, what should the format be if there are strings in that array?
[11:30:03] <daniel1302> Hi :)
[11:30:08] <daniel1302> I have got question :)
[11:30:59] <daniel1302> https://i.ibb.co/wshg7hw/image.png
[11:31:14] <daniel1302> My mongoDB read a lot sometimes. It try to read 20 GB in 3 min
[11:31:21] <daniel1302> I have small db ~5mb
[11:31:39] <daniel1302> This is Pritunl DB. How Can I debug what is read?
[13:50:02] <bluezone> daniel1302: maybe the log file?
[16:06:31] <ironpig> is there a notation that would allow me to get the nth item for the base of a document ? <--- I'm not sure base it the correct word. ie, the _id value would be 0 and the next value would be 1 ?
[16:12:15] <bluezone> ironpig: think there is a .skip()
[16:12:27] <bluezone> .skip(100) skips the first 100 documents
[16:12:36] <bluezone> but there's probably a better way to do what you need
[16:34:20] <sperry> How can I query / count all the 'codes' based on this schema? https://bpaste.net/show/Bn2p
[16:34:47] <sperry> assume the collection is just called 'batches'
[17:20:16] <bluezone> sperry: just fetch the array and do array.length
[17:21:00] <sperry> bluezone: i want an aggregate of all batches if that makes a difference
[17:21:12] <sperry> so in that case, it would return 4
[17:22:34] <bluezone> o
[17:22:44] <bluezone> yeah you can use aggregrations too
[17:22:53] <bluezone> there's probably a $count keyword
[19:39:27] <bgilb> in mongo i can do db.objects.distinct("array").sort(), how do i sort in the c# drivers?
[19:39:35] <bgilb> or is just sorting the list of strings the same thing?
[19:46:54] <bgilb> h3lo?