[06:02:22] <safani> I have a very weird problem going on with aggregation. On my local pc I have mongo3.0.3 and on my dev server i have the same version.
[06:03:02] <safani> When I try an aggregation on a map reduced table on my local server all is well. I get the expected results, but on the dev server I only get one result!
[06:03:18] <safani> They are the same version and I don't understand why or how this could happen?
[06:03:39] <safani> Any clues or insight would be greatly appreciated.
[06:27:02] <joannac> safani: pastebin the aggregtion and the output on dev and local?
[06:28:03] <safani> nevermind i just fixed it...two things, one was pure stupidity. I didn't update my db dump so dev and local weren't the same. All is well, I do have another weird issue though...
[06:28:25] <safani> When attempting to page the results I just get an empty array even though i know there are more results
[06:28:43] <safani> I send skip 25 and then there are no results all of a sudden
[12:43:07] <StephenLynx> aww, find and X ops are limited to a single document :|
[12:57:05] <koren> hello, I have a massive collection (oauth token) that takes a large amount of my index. I decided to clean it up a bit to free some space and now my queries takes longer
[12:57:17] <koren> using wiredtiger, does my DB need some time to reorganize the index?
[12:57:26] <koren> I dropped 25% of documents, and my index is now larger
[13:34:47] <koren> I will do this at night next time but I'm surprised this happened and maybe it is related to a bad index since index is on a string field and I removed documents based on a date
[13:35:06] <koren> so maybe index data is spaced a lot in memory now but I don't know mongodb enough
[13:36:17] <koren> index size is reducing very slowly so I think i'll just wait
[13:50:30] <StephenLynx> is not the default engine, but 10gen uses it on their service though.
[13:57:30] <luaboy> how to count the number of doc records?
[13:59:58] <koren> StephenLynx: yes I know that but maybe I did something wrong so I'd rather ask here so I can fix it, we are already rolling back to defaut engine on some of our db for issues related to disk IO and poor performances of IO on cloud hosting
[14:04:50] <dede> hi, anybody knows why there is not enough documentation for gridfs?
[14:05:15] <dede> there is a high level documentation but all the advanced use cases spread over some unoffical tutorials
[14:36:09] <StephenLynx> dede what kind of advanced use cases?
[14:37:54] <dede> trying to implement file server over gridfs and need some guide on how to setup bucket/s and what are the restrictions and corner cases
[14:39:12] <dede> but documentation is really basic and all I could find is native-javascript driver documentation https://mongodb.github.io/node-mongodb-native/api-articles/nodekoarticle2.html
[15:15:48] <adsf> if i had a set of strings i wanted to search for in mongo, where i needed to know which existed/which didnt, is there a bulk operation i could use?
[15:15:52] <adsf> or should i just do one at a time?
[15:16:19] <StephenLynx> I think you could use the $or operator.
[17:46:13] <goldstar> how do I remove everything in a db that is older than one month ?
[17:46:46] <StephenLynx> you will have to perform this query on each one of its collections, if I am not mistaken
[17:48:05] <goldstar> StephenLynx: ah, there are 20+ collections :( - I need to free up some space; how would I find out will collection is consuming the most space ?
[18:12:06] <jr3> is there a way to tell mongoose, to query on some constraint say that returns 500 documents, but I only want to process 100 at a time,
[18:44:59] <goldstar> GothAlice: one other question; can I set expiries for db ? i.e. only keep data that is 1 month other
[18:45:02] <GothAlice> Note that to actually free up disk space, you need to run a repair operation. http://docs.mongodb.org/manual/reference/command/repairDatabase/
[18:45:13] <StephenLynx> you can set it for individual documents.
[18:45:27] <GothAlice> goldstar: Yes, you can create a TTL (time-to-live) index against a date field in your documents.
[18:45:49] <goldstar> GothAlice: thanks once again :)
[18:46:27] <GothAlice> Note again that to free up currently allocated disk space, you'll need to repair the database. After that, once you get a TTL index in, hopefully the collection won't grow too quickly.
[19:13:29] <GothAlice> But I get the general idea that iterating QuerySets is bad for some reason.
[19:27:54] <grazfather> hey guys, can a aggregate be used to set arbitrary keys in the group? e.g. http://pastebin.com/xYqbMCZ7 is the sample in/out, but i get "A pipeline stage specification object must contain exactly one field"
[20:25:37] <carver404> hi.. i'm trying to install mongodb on my Fedora.. though why this baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/x86_64/ is down?
[20:52:01] <willbutton> trying to export a collection from my dev server: `mongoexport --db test --collection bulkOperation --out bulkOperation.json --authenticationDatabase admin -u myUserName -p myPassword`
[20:52:12] <StephenLynx> Not many of us know every single db performance in existance.
[20:52:14] <willbutton> get the error: Failed: error connecting to db server: server returned error on SASL authentication step: Authentication
[20:52:19] <StephenLynx> I have never heard about rethink
[21:05:21] <deathanchor> mongodb is faster in some things than tokumx, but tokumx is faster in other things
[21:09:40] <GothAlice> willbutton: Double check that the client tools you are using match the version of the server.
[21:12:18] <willbutton> GothAlice: they do, both v. 3.0.2, attempting the export from the mongodb server
[22:08:39] <willbutton> I think it is permission related- I can't drop the database either. The user account currently has the following permissions: clusterAdmin, dbAdmin, readWriteAnyDatabase, userAdminAnyDatabase
[22:08:47] <willbutton> What permissions are required to export?
[22:11:20] <willbutton> fyi: I added dbAdmin after discovering I can't drop the database.
[22:33:22] <joannac> willbutton: if you open a shell and authenticate, does it work?
[22:33:31] <joannac> (the authentication part, I mean)
[22:34:48] <willbutton> yup- it does, username and password confirmed
[22:36:14] <joannac> confirm the roles array for me?
[23:36:13] <willbutton> yeah- that's the conclusion I came to.
[23:36:34] <willbutton> I have another mongodb server, but can't try to replicate the issue until later tonight
[23:37:14] <willbutton> as a work-around, I moved the collections to a new db, dropped the test db, then moved them back
[23:38:21] <joannac> willbutton: does mongo -u user -p password --authenticationDatabase admin work?
[23:41:34] <willbutton> oh wow- so this is interesting. If my password is in the command, it fails but if I just use -p and enter my password when prompted, it works
[23:42:05] <joannac> do you have a weird character in your password?