[04:07:08] <redlegion> Is there much benefit to using bson for storage and delivery of files?
[07:54:15] <newtc> Hello, I'm having trouble with a query and I was wondering if anyone can be of assistance
[07:54:23] <newtc> It's similar to this: http://stackoverflow.com/questions/29368141/mongodb-query-latest-record-by-date-for-each-item
[07:55:56] <newtc> I have various records, of which I look for only some (let's say all of those in which foo=bar). Of those, I want the ones with the latest record, grouped by hash
[07:56:42] <newtc> I tried something like this but it evidently did not work: http://pastebin.com/87MkdNWV
[08:50:22] <newtc> There's some one extra key/val I would like to pass
[08:50:29] <newtc> But otherwise, yes (and some other fields I don't care about)
[08:54:56] <newtc> I figured there ought to be a way to receive the ID, since I'm not really aggregating anything but taking a single record. Maybe $group isn't the way?
[13:03:12] <PedroDiogo> my app will go into production mode in a week, and I haven't figured out yet how should I deploy my database
[13:04:23] <PedroDiogo> what do you think of using a replica set of 3 digital ocean vps for 10$ each ?
[13:05:05] <PedroDiogo> data wise, I know 30GB will be enough, but I dont know about the speed and the handling of the concurrent connections
[13:06:04] <PedroDiogo> also, in a replica set, should all the servers be equal when it comes to performance, or is the primary one the one who needs more processing power/ram ?
[13:06:10] <PedroDiogo> sorry for all the questions.....
[13:07:55] <JamesHarrison> they should broadly speaking be homogenous
[13:08:16] <JamesHarrison> as at any moment the master may fail and now one of the other boxes is master
[13:08:35] <JamesHarrison> digital ocean VPSes have pretty awful performance and might not be the best option
[13:08:53] <JamesHarrison> you'll almost certainly get more performance out of spending $30 on a decent VPS or more on a dedi
[13:13:39] <cqdev> Is there an effective way in Mongo to do multiple sorts with a spatial index based query?
[13:14:38] <cqdev> I'm running into an issue where I need to pull back documents based on geo location and then sort them by another field. The 16MB limit on BSON seems to be killing an potential to solve this problem.
[13:17:33] <cqdev> Essentially I'm trying to pull all records in a 250 mile radius around a point, then sort them by distance/another field
[13:22:41] <bgardner> Pull the records and sort in the application code?
[13:23:36] <cqdev> bgardner: That's too inefficient, the result times would be astronmically high. I've tried a few things but the BSON document limit is just too small to be useful.
[13:24:10] <cqdev> The $near and $nearSphere operations really should return a cursor, it's practically useless if you operate on 1+ million records
[13:24:41] <bgardner> Sounds like your particular use-case may not be a good fit for mongo.
[13:26:55] <cqdev> bgardner: I'm thinking so as well, I've played with OrientDB as well, I really wanted to go with a schema-less design but there doesn't appear to be a noSql database that can handle this problem.
[13:52:58] <PedroDiogo> JamesHarrison: thanks for the feedback! I've just tried to look up for some benchmarks and digital ocean looked like a nice deal
[13:53:07] <PedroDiogo> what do you recommend then?
[14:38:27] <JamesHarrison> PedroDiogo: I use Memset for the few VPSes I need, most of my things require dedicated hardware or large cloud instances (mostly on AWS)
[14:53:06] <PedroDiogo> hm, ok, thanks. so, no recommendation on fast solutions for small projects ? :)
[18:49:19] <Constg> Hello, I have a problem for several days now... On one server, I have a query which blocks completely the queue, CPU rise up to 1600%, I've tried db.currentOp({"active" : true, "numYields" : 0, "waitingForLock" : false } ) but result is empty. Do you have any idea how to find what is blocking???
[19:22:14] <Constg> Do you know how I could find which query blocks the queue?
[20:07:11] <kba> Constg: you could log all queries, then check the log after it freezes?
[20:08:11] <Constg> kba, what's better way to log all queries?
[20:09:42] <kba> Constg: that depends on your application
[20:10:16] <Constg> ha but I thought already doing it app side, but the app continue to send queries...
[20:10:51] <kba> If so, only log successful queries
[20:10:55] <Constg> If I can't find till tomorrow, I'll log on app side, and log all answers, so check where I stop receiving answers
[20:11:27] <Constg> before that, I did a db.setProfilingLevel(1, 500)
[20:11:37] <Constg> and now I'm waiting for the problem to come back
[20:34:42] <f31n> is there a way to search not with a string but with an array containing strings to match _id's? means i've got a numarray with id's and i wanna select only the documents i have in the array