PMXBOT Log file Viewer

Help | Karma | Search:

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

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:39:28] <MongoNewb> anyone here for a quick question?
[01:27:55] <joannac> MongoNewb: I am, but going to head out again soon
[01:28:11] <joannac> If you had asked your question instead of asking to ask, I might've answered it by now ;)
[02:20:15] <pheze> Hi. I need to generate object ids on the client. Ideally, those ids should be as small as possible. The good news is that there isn't so much objects being created. Is there something wrong in using something like new Date().getTime() + seq + random
[02:20:46] <pheze> Also, I was looking into maybe using real UUID. But was wondering if there was a way to compress them to something smaller.. Anyone has experience with such ideas?
[05:48:49] <sweb> what's best index for this query ?
[05:48:50] <sweb> db.mycol.find( { f1: { $in: [ 5, 15 ] } } ).sort({ f2 : -1});
[05:49:17] <sweb> both of index ? which one is first ? and which one asc or desc
[07:40:38] <sani> hi all
[07:40:57] <sani> how to check if there is already exist specific document in collection
[07:42:23] <sani> anyone knows?
[07:47:14] <clarity_> hey, is mongo still an open source project where i can contribute without being hired?
[10:37:24] <mylord> geofencing - how is it done efficiently in mongodb?
[15:54:59] <ajph> hey. is it reasonable to run with a high % write lock on a primary (>%130) for periods of hours? even rate-limiting my updates i can't get this figure down. all user-facing operations are reads and are done from the secondary which maintains a very low lock %
[17:19:10] <clarity_> hey, is mongodb still a project that anyone can contribute to?
[17:33:47] <cheeser> it is
[20:38:10] <Pinkamena_D> something really weird if someone could help me understand the logic behind it that would be nice
[20:38:27] <Pinkamena_D> using pymongo, I run a geoNear command correctly
[20:38:39] <Pinkamena_D> I attempt to see if any results exist.
[20:38:53] <Pinkamena_D> print len(ret['results'])
[20:39:04] <Pinkamena_D> great, I get 3 results.
[20:39:27] <Pinkamena_D> comment out that line and put: if len(ret['results']) > 0:
[20:39:43] <Pinkamena_D> get error: type 'boolean' has no len()
[20:39:47] <Pinkamena_D> wtf!
[20:40:43] <Pinkamena_D> I can add an extra line length = len(ret['results']), and then compare on length that way
[20:41:07] <Pinkamena_D> but this took some debugging and makes no sense from a logical standpoint why they type would change during comparisons
[20:41:30] <Pinkamena_D> can anyone let me know what this is for?
[22:18:02] <cramrod> Help! Querying a particular document causes a [parserError] in the node.js native driver. The same document is retrieved without problem using Mongo Shell. Do the two use the same BSON Parser?