[10:03:09] <obiwahn> should be CMAKE_CURRENT_SOURCE_DIR
[10:04:12] <obiwahn> that way the driver could be included in another project and the modules would still get added. like this it would look (if included) in the parents source dir.
[18:18:24] <Trinity> hi, i'm using Node.Js with it's MongoDB driver and I was curious to what Server.poolSize means
[18:18:32] <Trinity> the documentation states, Number of connections in the connection pool for each server instance, set to 5 as default for legacy reasons
[18:19:02] <Trinity> but from what I understand about Node.js it is single threaded and thus wouldn't that mean only one connection can be used at a time?
[18:19:26] <Trinity> but i'm thinking that because calls are asynchronous they are used temporarily until filled?
[18:23:56] <starseed> couldn't really advise you there
[18:24:02] <Trinity> alright, thanks for the help starseed
[18:24:59] <starseed> I'm looking for a way to get information about a cursor, using either pymongo or querying the mongo shell directly
[18:25:16] <Trinity> starseed, how would nested cursor lookups work? Would they be counted as two connections or one connection?
[18:25:39] <Trinity> i.e if I have a max poolSize of 5 and I have more than 5 nested cursors would that mean the pool will run out?
[18:26:36] <starseed> Sorry, don't know the answer to that
[18:26:51] <starseed> the application I deal with at work typically has several thousand connections open and has a huge pool
[18:28:37] <starseed> Trinity this may be relevant to you: http://blog.mlab.com/2013/11/deep-dive-into-connection-pooling/
[18:29:00] <starseed> 'The syntax for using MongoClient is slightly different here than with other drivers given Node’s single-threaded nature, but the concept is the same. You only want to call ‘connect’ once during your apps initialization phase vs. on each database request.'
[18:31:41] <starseed> I'm looking for a way to get information about a cursor, using either pymongo or querying the mongo shell directly. I don't really need specific information about the cursor - I essentially need to be able to ask mongo "does this cursor ID exist?" and get a True/False answer. Any ideas?
[18:32:42] <starseed> All the methods I have found assume you are doing something like db.collection.find().hasNext...but I need to ask it about a specific cursorID and won't know what opened it
[18:36:27] <pr0gi> I am trying to store RAW sensor data from an iphone app to a mongoDB for further analysis. Does it make sense to store the data as JSON and encode it as base64 to store as binary? Or what would be best practise