[00:55:24] <ruphos> I'm trying to migrate utf8 encoded text from the subdocument of one collection to its own collection with the perl MongoDB driver. It throws errors on the utf-specific characters ("Wide character in subroutine entry at /usr/local/lib/perl/5.14.2/MongoDB/Collection.pm line 168"). Is this just an issue with the perl driver, or is there special handling to be done with utf8?
[01:01:12] <vl4kn0> Is there a way to do 'binary search' instead of fulltext search? Meaning fulltext search except accepting all values ranging from 0 - 255 ?
[02:41:27] <cesarkawakami> vl4kn0: "fulltext" usually means taking into account some characteristics of natural language. Which will naturally not be present in binary data. What do you want to do?
[03:38:40] <cheeser> there's no clear consensus on if the client uses that config file or not but if it doesn't (which probably isn't likely) then you're SOL on a permanent configuration. you'll just have to pass an option each time
[13:52:43] <banditron> diagrams aren't loading in the docs. e.g. http://docs.mongodb.org/manual/core/crud-introduction/
[13:53:15] <CupOfCocoa> Hey guys, I use pymongo as my driver and want to access the id of some documents in a cursor. specifically, I want to build a list of all the document ID's from the cursor to insert that list into a new document, so basically my document 2 contains a grouping of some documents 1 with some additional info. How would I go about this? A straightforward [p['id'] for p in cursor] leads to nothing
[14:10:58] <vl4kn0> Is there a way to use mongodb search facilities to search for any other than string values? I've got N integer values ranging from 0 to 255 and need to do fulltext search on them (the values are not actually any meaningfull strings)
[15:17:39] <vl4kn0> Nodex: still not what I'm looking for, I need to look for a vector for an occurence in a smaller vector, not any of the elements within the vector
[15:44:35] <guilhermekfe> But I think I know the issue... I changed the type of project_id in User Schema
[15:45:04] <guilhermekfe> I'm very new to no-sql concepts, and I have this doubt regarding one-to-many relations
[15:45:42] <guilhermekfe> This is how I'm declaring the Schema http://pastie.org/8421648
[15:46:33] <guilhermekfe> My doubt is, should I use String for project_id, and then take out ref... or is this the best way?
[15:50:31] <guilhermekfe> Nodex, It would be very helpful to know which is the correct =)
[15:52:02] <salty-horse> hey. I'm pondering what's faster: whether I should perform two updates, one of which produces a duplicate key error, or instead do a find() followed by a single update. Is there a performance penalty because of the error generated on the server?
[15:53:25] <Derick> it will update when it matches the criteria, and if it doesn't find a doc matching the criteria, add one
[15:54:31] <salty-horse> derick: The first update mentioned is an upsert with a conditional: So it can either (1) succeed silently, (2) perform an insert, or (3) fail with dup key error due to the full conditional not matching any and insert failing for the duplicate key. that's not my question though :)
[15:55:23] <Derick> find + single update I think is better, but I'd say try it with production load and data :-)
[15:55:33] <salty-horse> I'm just wondering if the duplicate key error is tasking the server somehow. maybe it needs to return extra data to the client, and I'm better off just doing the find() first doing things right :)
[17:28:09] <mboman> How can I query a subdocument? I have pefunctions.[list of dlls].[list of functions] and I want to query for a specific function but I don't know (beforehand) which DLL it is located in
[17:28:58] <mboman> so I want to do something like find({"pefunctions.*" : "myFunction"})
[17:42:57] <mboman> jyee, not sure I understand the document. I've pasted an example document at http://pastebin.com/BnjDfqDs which is from db.metadata.find().limit(1). How can I query for "IsDebuggerPresent" in pefunctions.* without knowing that I should be looking in KERNEL32?
[17:51:07] <rh1n0> Anyone seen where a version upgrade causes 0 objects to be returned (using mongoid). saving/writing works fine. We just upgraded to 2.4.6 on ubuntu. tx
[17:57:36] <jyee> i was going to say that it's not possible, except for doing it app side, but those ^^ suggest with a schema change to use an array, you could do it.
[17:57:48] <retran> can do a map reduce where you shove all the data into a single field, and the ObjectId in a separate field
[17:58:21] <retran> then search on your single field, and get returned the ObjectId of the original object
[17:59:15] <retran> by "shove" i mean concat the values of all the fields
[19:04:06] <squeakytoy> Need some suggestions. I have two collections; Users and Videos. Now a user should be able to "like" a video. Should I store that in the Video document? { likes: [ *user ids* ] } ? That will be a crazy long list for each Video Document.
[19:08:58] <tripflex> squeakytoy: depends on how you use the data
[19:09:11] <tripflex> but i would say store it in the user for their likes
[19:09:14] <squeakytoy> When i fetch the video, I need to also show the number of views
[19:09:28] <tripflex> i would store that under video
[20:04:29] <Frnk> but i think I could calculate something like: difference = radius - calculatedDistance and then query for: difference > 0 or somethink loike that
[21:19:51] <dxd828> Hey, something is trying to run "profile: -1" every few seconds as I can see in the logs. But the user keeps getting permission denied. What do i need to give that user so it can run this?
[21:41:42] <angasulino> I'm using the java driver to load an object from mongodb, it has a set_id(ObjectId) and ObjectId get_id(), but the ObjectId is not being loaded (I want to put the Id in some HTML so I can get it back when it's selected), I have searched but haven't come up with anything even related to my question, so I must be using the wrong terms, what am I doing wrong?
[21:42:18] <cheeser> without seeing your code... care to put it on a pastebin?
[22:48:44] <LoneSoldier728> my db structure is going to be pretty nested
[22:48:56] <LoneSoldier728> I am using mongoose with nodejs to create models
[22:49:26] <LoneSoldier728> basically, I guess I want to name mongoose collections on the fly, I know they are specified in the model usually
[22:50:52] <LoneSoldier728> what makes more sense - basically these are the type of data I am going to store --- channel, week, year, songs - i was thinking of making a collection of channels, then within each channel have a collection of years, then in that a collection of weeks, and then a collection of songs within that
[22:51:03] <LoneSoldier728> or should I just make individual docs with fields for each of those
[22:51:27] <LoneSoldier728> I am assuming the individual docs would be better for querying/mongo ?
[23:21:58] <disorder> I have a problem with this code:
[23:22:43] <disorder> I have a list of tags, and I want to check if every tag has attached a document, if not I want to delete that tag from its own collection
[23:22:53] <disorder> right now I'm using this, which is clearly wrong:
[23:22:56] <disorder> for (var i=0;i<tags.length;i++){