PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 27th of April, 2013

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:09:55] <mongodb033> Hi, where can I find the bson package required by pymongo? When I use the one from PyPI (pip install bson), it's installing bson with RE_TYPE, son, and etc missing
[01:11:09] <mongodb033> for example: from bson.py3compat import b ImportError: No module named py3compat
[01:18:10] <mongodb033> never mind :D
[03:47:35] <diffuse> hi i am testing updating a flag on all documents in a collection, but it doesn't seem to be updating everything
[03:48:22] <diffuse> i do an db.coll.update({}, { $set : { flag:0 } });
[03:49:13] <diffuse> but if i do a db.coll.count({flag:1}); it says there still a few hundred documents that have flag set to 1
[03:51:25] <diffuse> hm
[04:14:41] <kexmex> diffuse
[04:14:43] <kexmex> still need help
[04:14:45] <kexmex> ?
[04:14:55] <kexmex> do this
[04:15:17] <diffuse> i found it in the docs
[04:15:19] <kexmex> db.col1.update({}, { $set : { flag : 0 } }, false, true)
[04:15:33] <diffuse> thank you, just over looked a flag
[04:15:36] <kexmex> weird functionality i know
[04:15:44] <kexmex> i think it should be true by default
[04:15:53] <kexmex> why would i want to update only 1
[04:15:55] <kexmex> i am not sure :)
[04:16:01] <diffuse> yeah
[04:16:08] <kexmex> if i want to update 1, i make sure the filter criteria retrieves only 1
[04:16:09] <kexmex> heh
[05:39:37] <rawl79> Hello.
[06:32:05] <donCams> is it a good idea to have a 5-layer deep nested document?
[06:35:35] <ron> depends.
[06:36:28] <ron> if you need to directly manipulate the 5-level deeply-nested document, then I'd avoid it. if you're storing it for convenience reasons, no problem at all.
[06:41:46] <donCams> if i need to manipulate it, what do you suggest?
[06:42:06] <donCams> referencing?
[06:42:57] <ron> directly manipulate it or update the document as a whole?
[06:44:13] <donCams> english is not my first language. but if i need to update one of the layers constantly
[06:44:44] <donCams> i guess that is directly manipulating it?
[06:44:52] <ron> yup
[06:45:08] <ron> well, without knowing the full use case, it would be difficult to suggest a solution
[06:46:16] <donCams> say just a 2-level deep document. i have an object that has attributes. this attribute comes from a separate collection.
[06:46:56] <donCams> now say i update a name of an attribute from the origin collection and I want that change to propagate to all the objects that has that attribute
[06:47:14] <donCams> there are 2 collections on this scenario
[07:13:28] <ron> donCams: I imagine changing the name of an attribute isn't that common
[08:56:28] <[S^K]> How can I sort a nested list using find_one() ?
[08:57:06] <kali> you can't. you need to do it application side, or with the aggregation framework
[09:00:18] <Nodex> AF++
[10:24:54] <Nodex> point in time backups - done. Document version control - done :D
[11:21:59] <dob_> is it still correct that mongodb does not use indexes when aggregate using $group?
[11:25:03] <dob_> I have a aggregation which groups a lot of fields. I am thinking about adding all fields and search fields to a compound index. Will that help?
[11:30:35] <Nodex> aggregation grouping is fairly fast
[11:30:40] <Nodex> it's quite well optimised
[12:00:57] <Snebjorn> I found that just returning the entire document and doing the filter/grouping in C# is way faster
[12:01:08] <Snebjorn> like 8 times as fast
[13:43:49] <klaas> where can I validate mongodb packages (as in hash values) besides the official homepage?
[18:22:32] <Bilge> What's the best way to back up a monog database to my home Windows PC?
[18:22:41] <Bilge> The server is on Linux
[18:23:00] <Bilge> But I want to schedule regular backups to a home Windows PC that is not always switched on
[19:04:08] <heloyou> anyone here familiar with doctrine ODM? having an issue with the persister not creating a dbref in the parent when i add a new document to its arraycollection. #doctrine seems fairly dead...
[19:05:36] <heloyou> http://pastebin.com/8y7QVBJU
[19:05:52] <heloyou> it actually creates the document, but no dbref added
[19:10:32] <Bilge> Nobody in here will answer you
[20:25:27] <Blablu> Does anybody know how to make query selectors with logical operators in the haskell mongodb binding?
[20:25:34] <Blablu> eg. find all documents with name = "peter" or name = "ash"
[21:00:05] <Eins> o/ Hello, do you know of a command to get the ttl of an index, the seconds of it?