PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 25th of July, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[10:16:18] <Syndrom> Is it okay to use RAID 6 when using SSDs?
[10:32:08] <kali> it may be a bit wasteful, ssds are less likely to fail than disks, so raid 5 might be good enough
[10:32:56] <kali> i guess it depends how big an array you are talking, and how fast you could get a new unit in place
[11:52:40] <Syndrom> kali: planing a system for 30k writes per second. each write is below 1 kb
[11:52:49] <Syndrom> Looking to get around 90TB in storage in total
[11:53:12] <Syndrom> RAID 10 is a lot more expensive, so doing raid 5 would help a lot
[15:40:54] <m4tthumphrey> is this channel active?
[15:48:05] <edrocks> kind of
[15:48:11] <edrocks> m4tthumphrey ^
[15:53:22] <m4tthumphrey> ok great! im not sure if this is possible in mongo: i have a collection of documents, one of the field contains an array of "patterns" (for a better word) which i would like to match against the begins with operator. now normally in mongo you query like: field_name: { operator: value } but a) i would need to do: value: { operator: field_name } and b) within an array
[15:56:41] <m4tthumphrey> is it actually possible to use the regex operator where the pattern is in the document?
[16:05:18] <m4tthumphrey> in mysql it would be `where "subject" like field_name` field_name would contain the pattern such as "this is a %"
[16:08:15] <m4tthumphrey> looks like i need $expr
[16:23:53] <m4tthumphrey> :(
[16:33:07] <m4tthumphrey> $where i guess
[18:54:33] <Gopa> Hello,
[18:54:33] <Gopa> I wanted to user MongoDB to store logged in users tokens(OAuth passport.js) into database, I have read the random documentations and built this[1] but this is not saving into my database, Can anyone please guide me ?
[18:54:33] <Gopa> [1] https://github.com/gopavasanth/video-cut-tool-back-end/blob/newerror/app.js#L17
[18:56:33] <Gopa> My server also fails everytime when I use this :(
[18:56:33] <Gopa> https://ibb.co/S7cQXsk
[19:29:06] <AJTJ> we are using mongo and I get errors under ObjectId() and NumberInt() in my editor (vscode). It says "value expected"
[19:29:06] <AJTJ> {
[19:29:06] <AJTJ> "_id": ObjectId("5c6c558fb6e8699b2c60fb91"),
[19:29:44] <AJTJ> really not sure how to approach this