PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 24th of August, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:45:36] <grindhold> can someone please explain to me why the second find-command does not find anything? http://pastie.org/9498041
[00:46:30] <elfuego> how can I initialize a mongo database from a file? does anyone has any documentation on this?
[02:30:50] <natoshi> hello
[02:30:58] <natoshi> i just started with mongo and node js
[02:31:11] <natoshi> and have one problem with making data insertion async
[02:31:26] <natoshi> i have an array of objects which i insert
[02:31:41] <natoshi> but as i insert i check if they are already inside
[02:31:55] <natoshi> and that is when i want to stop inserting further objcets
[02:32:08] <natoshi> the problem is this is in a loop
[02:32:33] <natoshi> how can i make this process async?
[06:21:04] <nachos> Heya, Question. How can I match against feilds? Eg. for foo: { bar:
[06:21:29] <nachos> foo: { bar: 'baz' }, blah : { foo: bar }
[06:21:51] <nachos> I want to do a search for the words foo or blah and then get the values.
[06:22:03] <nachos> So basically searching keys.
[06:43:00] <joannac> nachos: you can't search keys
[07:22:28] <mylord> [initandlisten] exception in initAndListen: 10309 Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating
[07:24:02] <mylord> but i can’t find any mongod running, when checking ps -ax | grep -i mongo
[07:42:00] <joannac> maybe the last time mongod shut down uncleanly?
[07:42:14] <joannac> does the lock file exist?
[07:59:49] <salty-horse> is it expected for an empty, freshly created replica set master to have a "local" database that uses 24GB?
[08:08:26] <joannac> salty-horse: how much free space on your drive?
[08:08:33] <joannac> oplog takes 5% of free space by default
[08:10:13] <salty-horse> joannac, that's what I'm seeing, too. thanks!
[11:56:12] <Const> Good afternoon!
[12:02:48] <Const> I need some help with an aggregate... I have a document like http://pastebin.com/8JNwg1RF and I'd like to get the (up-to 3) most used tags on the last 3 weeks. Any idea how to do that?
[12:06:19] <Const> it should return something like { { "test2": 9 }, { "test": 8 } }
[13:41:40] <ome> Mongos ID's leak too much information. Machine, Time, Counter. What is the best way to create UUID for users?
[13:42:17] <ome> And by that, I mean, UUIDs that I can publicly share without leaking mentioned information.
[14:44:23] <kali> ome: libuuid ?
[18:37:20] <azeirah> I'm trying to model the relation between two users (I'm building a friends system), but I'm having trouble. My original approach was to create a reference in both users to each other, but that quickly creates some complications.
[18:38:18] <azeirah> So I was thinking about creating a separate collection, "friends", but I can't think of a decent way to model that either
[18:46:55] <faeronsayn_> what complications?
[18:47:12] <faeronsayn_> @azeirah? Can't you have something like friends: [ array ] ?
[18:48:44] <azeirah> The queries get unnecessarily very complex very quickly and I have duplicate data
[18:51:30] <azeirah> Well, to be fair, the main problem with it is that I can't accurately describe the relationship between the two users. I have to update a relation in two places instead of one which doesn't make much sense, especially since I shouldn't be able to change another user's data (I'm currently storing the relation under user.profile.friends)
[18:55:41] <faeronsayn_> @azeirah take a look at this http://stackoverflow.com/questions/25344444/best-model-for-representing-many-to-many-relationships-with-attributes-in-mongod
[18:57:09] <azeirah> @faeronsayn_ I will, thanks
[18:59:40] <faeronsayn_> @azeirah if you have attributes in your relationship, then it gets difficult. If you just have an array of ids I don't think it's that bad, if you need to update both users (it's still one collection).
[19:00:42] <azeirah> @faeronsayn_ I only need one attribute, the relation status, either "friends" or "request". No relation simply means they aren't friends
[19:02:05] <faeronsayn_> @azeirah why not use followers and followees instead?
[19:02:49] <faeronsayn_> You can always split friends and friendRequests into two different fields. on the users collection
[19:03:57] <azeirah> It'll reduce the complexity a little, true, but I would still have the problem of having to update the relation in two different places. Both users need to know that they're friends with each other, it's not like twitter where you can follow someone without the other following you back
[19:29:30] <mango_> Has anyone gone through M102: Homework - 6.2
[19:29:30] <mango_> ?
[19:33:33] <mango_> I keep getting a 0 on homework.b() :(