PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 3rd of January, 2016

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[12:57:16] <robsco> i assume it's fine to create an index on a field (in preparation) before i've even populated the collection?
[12:57:30] <StephenLynx> yes.
[12:57:44] <StephenLynx> I use ensureIndex on my software booting.
[12:58:02] <robsco> thanks
[12:58:19] <robsco> will have a look at that function too
[13:02:24] <robsco> is it possible to do aggregations on the timestamp of the _id? or should i create a separate timestamp field if i want to do aggregations like this?
[13:02:45] <StephenLynx> I think you can. but not sure
[13:03:03] <robsco> sounds a bit hairy so may not venture down that road
[13:03:10] <robsco> just curious
[13:03:47] <StephenLynx> its just reading
[13:19:58] <Kwoth> Hello, i will repeat my question from few days ago:
[13:21:16] <Kwoth> I have posts and comments, each post can have any number of comments, and each comment and post can have a number of upvotes and downvotes (not just numbers, but list of users who upvoted/downvoted)
[13:21:25] <Kwoth> Should i keep everything in the same collection like
[13:21:42] <Kwoth> post{...,comments:[...]}
[13:22:11] <Kwoth> or like i am doing right now, collection for posts, collection for comments (with postId) so i can bind them together later in my app
[17:19:04] <kikero> Hey! I have a i686 Debian 8.2 machine, and I must install mongodb on it.
[17:19:24] <kikero> What would be the recommended way to install it?
[17:20:16] <kikero> I tried both running "sudo apt-get install mongodb" and installing the binary distribution with the instructions from the mongodb website, but both failed.
[17:20:43] <kikero> The former reads "Illegal instruction" everytime I try to execute "mongod".
[17:20:56] <StephenLynx> afaik debian 8 is not supported.
[17:21:00] <StephenLynx> only up until 7
[17:21:49] <kikero> yea
[17:22:05] <kikero> but I cannot change the server's operating system
[17:22:07] <kikero> unfortunatelly
[17:23:13] <kikero> https://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/
[17:41:30] <sterns> looking for alpha testers: http://floydcommons.com/fuoco-pad/#/?d=fba03756-9262-4c5d-9828-3555a1a95473
[18:23:39] <robsco> how do I update_many to set one field to be the value of another?
[18:24:37] <robsco> do i have to loop through them all?
[18:31:29] <Sagar> greetings, why does my php takes 5-10 seconds to connect to my mongodb?
[19:21:40] <SaintMoriarty> Hello! Happy New Year everyone