PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 1st of August, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[18:41:14] <bluezone> I'm using mongoose, does anyone understand why uppercase: true is not having any effect on new document inserts in the following schema
[18:41:27] <bluezone> https://www.irccloud.com/pastebin/q82Va2g5/
[18:42:16] <bluezone> the attribute "Connection" is never uppercased, whatever was entered by the user is kept as is
[18:43:51] <bluezone> lowercase:true also has no effect
[18:44:22] <bluezone> by the way, this collection already existed before I made this uppercase: true change
[18:44:54] <bluezone> not sure if that matters
[20:56:23] <bgilb> should i be working directly with bsondocuments ? Or should I convert to Jobjects ?
[20:56:44] <bgilb> for using outside the database for display purposes or other reasons
[21:04:46] <bluezone> think you can use either one
[21:05:44] <bluezone> if you make your requests with .lean() you'll get back a small JSON-like object if performance is a concern
[21:06:00] <bluezone> (memory)
[21:09:46] <bgilb> memory not to bad, just concerned Jobject.parse may fail or something
[21:09:59] <bgilb> but Bsondocument is weird as far as .getValue() instead of jobject("property")