PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Friday the 24th of July, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:36:25] <tejasmanohar> if i have an array of field X, say email... and i want to search through and see which `email` match users
[00:36:47] <tejasmanohar> so i loop thru right now and then do .find(email: 'theemail@email.com')
[00:36:49] <tejasmanohar> is there a faster way
[00:36:54] <tejasmanohar> what if there are a lot of things im searching up?
[00:38:49] <tejasmanohar> anything mongo query allowing me to input an array?
[00:50:11] <Boomtime> tejasmanohar: you probably want $in -> http://docs.mongodb.org/manual/reference/operator/query/in/
[00:50:45] <Boomtime> "The $in operator selects the documents where the value of a field equals any value in the specified array."
[01:11:27] <tejasmanohar> ohhh
[05:09:22] <polydaic> is mongoosejs at the point of being nearly abandoned?
[05:09:29] <polydaic> Seems like the current documentation is really lacking
[05:10:45] <polydaic> or maybe i'm just not finding the proper docs
[05:10:46] <polydaic> idk
[05:25:14] <lufi> polydaic: I think that docs are still updated but it does look unmaintained though
[05:44:26] <jezeniel> Hi guys, when i createIndex({app_id: 1, created_at: 1}), it should hit find({app_id: 1000}).sort({created_at: -1}) right?
[06:07:45] <Boomtime> jezeniel: yes
[06:08:05] <Boomtime> you can use .explain() to check
[06:15:59] <jezeniel> Boomtime: still weird.. the above query is still so slow, 120s.
[06:19:17] <svm_invictvs> Having trouble with a single query
[06:19:24] <svm_invictvs> http://pastebin.ca/3072816
[06:19:36] <svm_invictvs> Basically Morphia is not producing a reference query properly
[06:19:50] <svm_invictvs> OR I'm not producing it
[06:23:13] <jezeniel> svm_invictvs: have you tried this? db.application_profile.find({ "$ref" : "application" , "$id" : ObjectId("55b1d068f862bced7f9bb654")})
[06:27:20] <svm_invictvs> jezeniel: yeah
[06:27:24] <svm_invictvs> jezeniel: Isn't that in my paste
[06:42:07] <Boomtime> jezeniel: have you tried your query with .explain() to see what it is doing?
[09:20:08] <mbuf> what can cause this message, "Nothing to do. Either the server detected the possibility of another monitoring agent running, or no Hosts are configured on the MMS group."?
[09:20:46] <mbuf> I have only one monitoring agent running in a threenode replica set
[09:20:54] <mbuf> *three node
[09:21:17] <joannac> Did you add them to MMS?
[09:25:38] <mbuf> joannac, how should they be done?
[09:25:59] <mbuf> joannac, I use Ansible to deploy three instances of mongod in AWS
[09:26:10] <mbuf> joannac, and have installed the automation and monitoring agents
[09:26:19] <joannac> https://docs.cloud.mongodb.com/tutorial/add-hosts-to-monitoring/
[09:29:04] <mbuf> joannac, is it not possible to do it through a configuration file, or CLI, or using the monitoring or automation agents?
[09:30:36] <mbuf> joannac, at present, I see the three servers in the dashboard, but, they need to be associated with Hosts?
[09:31:51] <mbuf> joannac, which boils down to the question - is it possible to deploy mongod servers in AWS and just use the dashboard for monitoring without using its UI?
[09:42:12] <iszak__> How do people backup mongo? mongodump will be too slow, is there any incremental solution that is common place? most projects I found were unmaintained
[09:48:05] <joannac> iszak__: MMS ?
[09:48:20] <joannac> mbuf: I don't understand the question.
[09:49:13] <mbuf> joannac, when I installed the automation and monitoring agents using Ansible (deployment), I was able to see the servers listed in the dashboard
[09:49:37] <mbuf> joannac, but, I don't see the mongod process information in the UI because there is no host to server mapping (I guess)
[09:49:59] <iszak__> joannac: free ones?
[09:50:10] <mbuf> joannac, without using the UI and creating this mapping, would it be possible to specify this mapping through a configuration file so that I don't need to use the UI?
[09:50:30] <joannac> mbuf: the MMS API e.g. https://docs.cloud.mongodb.com/reference/api/hosts/#create-a-new-host ?
[09:51:09] <mbuf> joannac, nice
[09:51:28] <joannac> iszak__: no, you can either do it yourself (for free), or pay someone to do it.
[09:52:04] <joannac> iszak__: http://docs.mongodb.org/manual/administration/backup/
[09:52:42] <iszak__> joannac: yeah I looked at this and none talk about incremental backups, closest is following the oplog
[09:53:05] <joannac> iszak__: yup.
[09:55:35] <daslicht> hello, I have a broken mongodb on my debian wheezy 64 bin
[09:55:37] <daslicht> bit
[09:55:45] <daslicht> when I enter mongodb i get
[09:55:51] <daslicht> -bash: /usr/bin/mongo: No such file or directory
[09:56:11] <joannac> sounds like you haven't installed the binaries
[09:56:18] <daslicht> i tryied uninstlling it as it is dcecribed in teh mongodb manual but it says that there are no packages installed
[09:56:41] <daslicht> when i try to install it , i dont get a proper installation either
[09:56:59] <daslicht> how to completely remove mongodb so that i can start clean please?
[09:57:01] <joannac> daslicht: pastebin the output of your install
[09:57:20] <daslicht> shall i try this:
[09:57:21] <daslicht> http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/
[09:57:22] <daslicht> ?
[09:57:29] <joannac> ...yes
[09:57:33] <daslicht> ok
[09:59:57] <daslicht> https://gist.github.com/daslicht/9093bf61b4176e72b12c
[10:01:27] <daslicht> also still broken: /usr/bin/mongo: No such file or directory
[10:01:39] <daslicht> mongod
[10:01:41] <daslicht> oops
[10:01:42] <iszak__> daslicht: try sudo service mongodb start?
[10:02:06] <daslicht> already did
[10:02:09] <daslicht> root@Debian-76-wheezy-64-LAMP ~ # sudo service mongod start
[10:02:09] <daslicht> mongod: unrecognized service
[10:02:18] <iszak__> mongod != mongodb
[10:02:24] <daslicht> ohh
[10:02:28] <iszak__> mhmm it is mongod anyway
[10:02:40] <daslicht> root@Debian-76-wheezy-64-LAMP ~ # sudo service mongodb start
[10:02:40] <daslicht> mongodb: unrecognized service
[10:03:21] <joannac> ls -la /usr/bin/mongo*
[10:03:37] <daslicht> root@Debian-76-wheezy-64-LAMP ~ # ls -la /usr/bin/mongo*
[10:03:37] <daslicht> -rwxr-xr-x 1 root root 22M Jun 16 00:53 /usr/bin/mongod
[10:03:38] <daslicht> -rwxr-xr-x 1 root root 11M Jun 16 00:53 /usr/bin/mongodump
[10:03:39] <daslicht> -rwxr-xr-x 1 root root 9.9M Jun 16 00:53 /usr/bin/mongoexport
[10:03:41] <daslicht> -rwxr-xr-x 1 root root 9.9M Jun 16 00:53 /usr/bin/mongofiles
[10:03:43] <daslicht> -rwxr-xr-x 1 root root 11M Jun 16 00:53 /usr/bin/mongoimport
[10:03:45] <daslicht> -rwxr-xr-x 1 root root 9.6M Jun 16 00:53 /usr/bin/mongooplog
[10:03:47] <daslicht> -rwxr-xr-x 1 root root 22M Jun 16 00:53 /usr/bin/mongoperf
[10:03:49] <daslicht> -rwxr-xr-x 1 root root 11M Jun 16 00:53 /usr/bin/mongorestore
[10:03:51] <joannac> so the binaries are there
[10:03:51] <daslicht> -rwxr-xr-x 1 root root 11M Jun 16 00:53 /usr/bin/mongos
[10:03:53] <daslicht> -rwxr-xr-x 1 root root 9.8M Jun 16 00:53 /usr/bin/mongostat
[10:03:55] <iszak__> ouch
[10:03:55] <daslicht> -rwxr-xr-x 1 root root 9.7M Jun 16 00:53 /usr/bin/mongotop
[10:03:57] <daslicht> sorry
[10:04:03] <daslicht> really strange
[10:04:03] <mbuf> joannac, https://docs.cloud.mongodb.com/tutorial/add-hosts-to-monitoring/ asks for login credentials to communicate with the mongod instance? But, the mongod instances running in AWS don't have any credentials
[10:04:10] <iszak__> daslicht: echo $PATH; does it include /usr/bin ?
[10:04:29] <joannac> mbuf: then don't put any credentials in?
[10:04:37] <joannac> Pretty sure it says "optional"
[10:04:37] <daslicht> . /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[10:04:46] <daslicht> looks like
[10:05:10] <mbuf> joannac, right!
[10:05:14] <mbuf> joannac, thanks!
[10:05:23] <daslicht> when i call mongo i get: /usr/bin/mongo
[10:05:50] <joannac> I wonder why your shell is not installed
[10:06:39] <joannac> try apt-get --purge remove <package>; then install again
[10:07:40] <daslicht> i did that many times
[10:07:46] <daslicht> but let me paste the output
[10:08:18] <joannac> I hope you mean pastebin or gist
[10:08:42] <daslicht> pasting to the channel ewas a mistake
[10:08:48] <daslicht> something went wrong with limechat
[10:08:51] <daslicht> i use gist
[10:09:19] <daslicht> https://gist.github.com/daslicht/b7d7f483e09cc3f739d8
[10:09:21] <mbuf> joannac, worked! I need to try it through curl and then through Ansible; thanks for your time!
[10:09:33] <daslicht> i apologize for the paste in the channel above
[10:10:20] <daslicht> https://gist.github.com/daslicht/58538289f301e1200173
[10:10:23] <daslicht> reinstall
[10:10:35] <daslicht> still broken
[10:11:00] <joannac> "After this operation, 49.2 kB disk space will be freed.
[10:11:10] <joannac> that doesn't look like it's removing the right things
[10:11:55] <joannac> maybe just purge the shell, and reinstall just that one
[10:13:17] <daslicht> how?
[10:13:32] <daslicht> ahh mongodb-org-shell
[10:13:33] <daslicht> this
[10:17:10] <daslicht> i manually removed all packages
[10:17:16] <daslicht> and reinstalled them
[10:17:21] <daslicht> still broken :/
[10:20:25] <joannac> daslicht: gist. Also ls -la /usr/bin/mongo*
[10:20:52] <daslicht> https://gist.github.com/daslicht/a09d16160431758ef92d
[10:21:15] <daslicht> looks like the files are there but the liking is broken
[10:21:16] <joannac> what in the world are you on about
[10:21:24] <daslicht> ?
[10:21:28] <joannac> there's /usr/bin/mongo
[10:21:29] <joannac> right there
[10:21:50] <daslicht> ahh !
[10:22:02] <daslicht> mongo returns a result now !
[10:22:20] <daslicht> https://gist.github.com/daslicht/2d3a05b7d4c461880447
[10:22:29] <joannac> Did you claim it was broken without actually testing? :p
[10:22:41] <daslicht> i tested running the service
[10:22:45] <daslicht> which is still broken
[10:22:50] <joannac> gist
[10:23:01] <daslicht> https://gist.github.com/daslicht/ac70af6eeb3c7e4261b5
[10:23:39] <joannac> ls -la /etc/init.d/mongo*
[10:23:57] <daslicht> https://gist.github.com/daslicht/f74cab9f7f86b8504ea8
[10:24:18] <daslicht> the upstart job is highlighted red
[10:24:30] <joannac> why is it red?
[10:24:43] <daslicht> i dont know
[10:24:56] <daslicht> looks like tis is broken?
[10:25:11] <daslicht> red seams to be atleast a warning :)
[10:25:42] <daslicht> shall i uninstall anything and manually emove that init.d stuff ?
[10:27:10] <joannac> something is definitely weird there
[10:27:17] <daslicht> heh
[10:27:27] <joannac> Are you sure you didn't accidentally originally isntall the ubuntu packages?
[10:27:38] <joannac> debian doesn't use upstart, does it?
[10:27:45] <daslicht> I dont think so
[10:27:54] <daslicht> probably years before
[10:28:04] <daslicht> i try deleting that init.d :)
[10:28:49] <joannac> um, sure. but then I guarantee the service won't work
[10:29:06] <daslicht> currently reading this:
[10:29:07] <daslicht> http://unix.stackexchange.com/questions/187464/mongodb-will-not-uninstall
[10:33:17] <daslicht> interesting
[10:33:25] <daslicht> now i removed that init d mongodb link
[10:33:28] <daslicht> uninstalled all
[10:33:32] <daslicht> and reinstalled it
[10:33:33] <daslicht> https://gist.github.com/daslicht/c8819aa20bbdfbb61983
[10:34:01] <daslicht> i try installing the packages manually
[10:37:07] <pamp> Please, anyone could help with this issue : https://groups.google.com/forum/#!topic/mongodb-user/HcDpxRP-xR0
[11:18:29] <rusty78> Does mongoose significantly slow down mongodb when I am using it with node.js?
[11:35:29] <Garito> given this mongoengine query Q(unit=self.unit) & (Q(start__lte=self.created) | Q(start__exists=False)) & (Q(end__gte=self.created) | Q(end__exists=False)) & (Q(investor__contains=self.creator) | Q(investor=""))
[11:35:42] <Garito> where I'm looking for objects with a unit
[11:35:48] <Garito> a start date or null
[11:35:55] <Garito> an end date or null
[11:36:05] <Garito> and and investor of empty string
[11:36:17] <Garito> is it possible to sort'em by specificity?
[11:36:42] <Garito> where specificity will be first the one with start date end date and investor
[11:36:57] <Garito> last no start & end data and no investor
[11:37:04] <Garito> is this possible?
[11:37:06] <Garito> thanks!
[11:38:05] <Garito> sorry if the question is a bit weird
[11:45:34] <Garito> hello?
[11:45:37] <Garito> anyone alive here?
[11:45:40] <Garito> :)
[11:49:01] <Derick> Garito: it's IRC - just ask your question
[11:49:21] <Derick> oh - you did
[11:49:29] <Derick> nm :)
[11:52:03] <Garito> :)
[11:53:16] <Garito> @Derick perhaps my question is idiotic (I'm using elasticsearch too, perhaps this query is more for es than MDB?)
[12:01:32] <Garito> lunch time
[12:01:35] <Garito> see ya soon
[12:22:35] <ito> any eta for debian jessie support in the mongodb repository?
[12:25:51] <pokEarl> ok so potentially stupid question, but (in Java) When do you actually 'go into the database' so to speak. E.g if you create a DB collection, thats just a link to that collection in the database and the database is not affected by you creating collections right? But I guess if you create a cursor, that goes into the database and gets all the objects of that cursor, and then you do what you want with this cursor without going into the database again? and
[12:25:51] <pokEarl> getting out DBObjects or single values from the collection again would mean 'connecting' to the db again? hmm.
[12:44:20] <pokEarl> actually I guess a Cursor does not actually hold the objects themselves, just an open reference to where they are sort of hm.
[14:23:44] <dj3000> hi, i'm having some real troubles installing mongodb 3.0.x on ubuntu 15.04 . can someone please help me?
[14:24:08] <dj3000> I've followed the steps here: https://jira.mongodb.org/browse/SERVER-17742
[14:29:20] <pamp> Hi, Why I cant create Users, what is this error : "Error: couldn't add user: Could not lock auth data update lock"
[14:29:21] <pamp> ?
[14:38:01] <pamp> Error: couldn't add user: Could not lock auth data
[14:38:05] <pamp> any input?
[14:49:42] <pamp> I really need to stop all mongo components and remove all locks and then start again all mongod configservers and mongos again?
[15:48:12] <Epichero> I need to get all documents that have a certain tag, excluding any documents that contain an id in an array of excluded arrays
[15:48:20] <Epichero> array of excluded id's i mean
[15:51:28] <StephenLynx> tag: x, id: {$nin: exluded ids}
[15:53:10] <Epichero> i have tag x, myArrayofids: {$nin: id to exclude}
[15:53:29] <StephenLynx> no
[15:53:42] <StephenLynx> myArrayOfIds go into the value of $nin
[15:55:42] <Epichero> https://gist.github.com/Tyler-Anderson/798aa9e412237a453c35 line 15 i explain my problem better there.. i've been stumped on this for days
[15:56:22] <deathanchor> doesn't $nin take an array?
[15:57:01] <Epichero> i tried [id] to see if it would solve it but it doesn't
[15:58:12] <deathanchor> is it just one id?
[15:58:16] <Epichero> yes
[15:58:35] <Epichero> its one id, in the array decks
[15:58:53] <deathanchor> see comment I put
[15:59:42] <Epichero> thanks, i thought i tried that
[16:07:58] <Epichero> this shouldn't be possible... i'll come back after i work out what's going on here...
[17:06:42] <synthmeat> hey, a sort of general question - i intend to bring up one mongo instance for some sort of logging. i expect that to grow large, have fairly frequent writes, basically no reads, and while reliability isn't that important, i'd like ideally not ever cap it, just have it there to grow
[17:07:15] <synthmeat> long time ago i made a mistake not asking about advices on mongo modelling/setup and that cost me a lot :)
[17:07:27] <synthmeat> (i've used it as relational db more or less, many populates, ugh)
[17:08:20] <synthmeat> so, are there any advices, from the top of your hats?
[17:11:23] <preaction> why mongo if you don't intend to query? why not something less, like syslog/rsyslog/syslog-ng?
[17:12:05] <synthmeat> preaction: i intend do all sorts of queries, but they would not be user-facing, i'd just investigate dumps of it ocassionally
[17:12:16] <synthmeat> s/user/app
[17:12:46] <synthmeat> i like fairly powerful queries plus i get to link to them from user collection if need be
[17:13:08] <synthmeat> if it's such a bad choice for this, sure, do advise me against
[17:13:35] <synthmeat> i don't like to grow my stack unless absolutely neccessary though
[17:13:38] <preaction> it really depends on if you need all that if you're only going to do basic querying. are they already documents, or just lines of text?
[17:13:53] <synthmeat> preaction: fairly structured documents
[17:14:12] <synthmeat> and i'll need to query them according to that structure, obviously
[17:14:47] <Petazz> Hi! Is it possible to use another json parser with python library's json_util?
[17:15:07] <synthmeat> Petazz: wrong channel maybe?
[17:15:08] <preaction> Petazz: are you sure you're in the right place, this is mongodb
[17:15:33] <Petazz> Well isn't the official python library made by mongo?
[17:15:36] <preaction> synthmeat: it sounds fine. you can set time-based expiration if you want, or just clean things up
[17:15:59] <Petazz> synthmeat: preaction http://api.mongodb.org/python/current/api/bson/json_util.html
[17:16:44] <synthmeat> preaction: it's ok, that's my expected answer. i just wanted to double-check. thank you :)
[17:16:58] <preaction> okay, why do you need another parser? it seems like this is a niche use-case, not a general json tool, which is already provided in the python core library
[17:18:20] <Petazz> preaction: I'm looking to speed things up using C-written json parser in python. I was wondering if anyone knows if that could be used with the other parser. Is the json module backing that up replacable with cjson for example?
[17:20:02] <preaction> it uses python's json module, as the docs say
[17:20:19] <preaction> but i'm still not clear on why you must specifically use the bson.json_util
[17:20:22] <Petazz> preaction: That I already know from reading the source :)
[17:20:45] <Petazz> Hmm, well ofc because I'm encoding and decoding extended json
[17:21:01] <preaction> it wasn't ofc. if it was ofc, i wouldn't have asked.
[17:21:21] <preaction> my guess is you'll need to monkeypatch
[17:21:29] <Petazz> Why else would anyone use another layer on top of the built in json module?
[17:21:56] <Petazz> Yea I guess that must be it. Seems like it's using the module's object hook to extend it
[17:22:05] <Petazz> Not sure if any library supports the same API
[17:22:11] <preaction> ignorance? incompetence? cargo-cult? existing code already uses it and they don't know why so they don't want to change it because it could affect everything everywhere?
[17:22:18] <preaction> lots of reasons to not change something that's already working
[17:32:58] <blizzow> Anyone here have a working logrotate config for mongo 3.x on ubuntu? copytruncate isn't working for me (mongo just writes to the rotated logfile name) and whenever I run a kill -SIGUSR1 $mongoPID, I get these long timestamped files that mongo creates on top of my regular log rotation.
[17:40:13] <svm_invictvs> I asked last night, but it was late
[17:40:21] <svm_invictvs> So, I'm having trouble with Morphia and references to other objects.
[17:40:30] <svm_invictvs> Specifically the query it's genreating to find objects by db ref
[17:41:21] <svm_invictvs> http://pastebin.ca/3072816
[17:41:55] <svm_invictvs> The reference query just seems to not work.
[18:26:34] <grinndsw> I keep reading that I shouldn't use MongoDB with relational data but then people will say it's create for a model where an author has posts that have comments...isn't that relational?
[18:26:48] <grinndsw> *will say it's great for
[18:30:50] <preaction> it is relational, but it's not expected that a comment must be attached to multiple posts. "belongs to" or "one -> many" relationships are generally fine
[18:31:23] <preaction> it just means that if you have relations, you need to deal with them yourself
[18:32:21] <grinndsw> Are there any benchmarks comparing the need for 2 querys vs a relational join>
[18:32:44] <grinndsw> And that makes a lot of sense - especially the part about "expecting"
[18:34:12] <preaction> how can you benchmark 2 entirely different things?
[18:34:29] <preaction> at least, and expect the results to make any kind of sense
[18:34:51] <grinndsw> Well - mongo constantly advertises speed so I'm just curious if having to do two queries to simulate a join is slower/faster than the traditional join
[18:35:14] <preaction> too many variables would make the results meaningless. benchmarking mysql against mongo is weird. do you take the SQL parser out of the equation? how? if so, how do you join?
[18:37:11] <svm_invictvs> grinndsw: Just becuase you're using Mongo doesn't mean you have to abandon all principles of relational data.
[18:37:18] <svm_invictvs> That's why we have references etc.
[18:42:19] <svm_invictvs> Nobody has an answer for my query issue?
[18:42:22] <svm_invictvs> ><
[18:45:16] <grinndsw> svm_invictvs: I'm just trying to wrap my head around the valid use cases and a lot of the resources say to be document minded...but it's difficult to see relational data as documents and I can't reconcile speed differences (isn't that a massive motivating factor along with the impedance mismatch?)
[18:48:11] <grinndsw> preaction: That's a valid point - I'm not sure how that could be properly benchmarked. I guess that's where I just need to make sure to pay attention and moderate what I'm doing to see where I can normalize data for better read speeds.
[18:48:34] <preaction> yes. or denormalize it, if needed
[18:48:50] <preaction> or get first-level caches involved, like memcached
[18:48:57] <grinndsw> Sorry - meant denormalize ( I always switch that up)
[18:51:42] <Epichero> i've been trying to figure this out for days
[18:52:14] <Epichero> /rage
[18:53:55] <preaction> well, glad that rage is ended then
[18:54:21] <grinndsw> ┬─┬ ノ( ゜-゜ノ)
[18:57:25] <Epichero> i meant i'd* i got help here and that problem was solved OOPS
[18:58:09] <grinndsw> Are there any MongoDB.org devs in here?
[18:58:10] <Epichero> I had to go back and fix some other stuff first but deathanchor really saved the day for me
[19:10:08] <vagelis> Hello, How can i get the documents that the sum of their fields is less than X ? Dont know if its possible
[19:10:26] <vagelis> Lets say they have a field total: number
[19:10:53] <vagelis> I want the first documents that the sum of this field isnt more than 50
[19:11:14] <grinndsw> What are you summing?
[19:11:19] <vagelis> These fields
[19:11:24] <grinndsw> Total seems like one number
[19:11:28] <vagelis> yes
[19:11:43] <grinndsw> So you want to find documents with a total greater than 50?
[19:11:49] <grinndsw> *less than
[19:11:54] <vagelis> the field is called total, for example: doc1 total: 15, doc2 total 33
[19:12:16] <grinndsw> So you're not summing...you're just looking for totals less than or equal to 50?
[19:12:24] <vagelis> Not total of their field, ok lets call this field my earnings
[19:12:39] <vagelis> So i want the first docs that the total of earnings is not more than 50
[19:12:55] <vagelis> So the first documents should sum to a number <50
[19:13:17] <grinndsw> So there's multiple numeric values in the document being summed?
[19:14:05] <vagelis> Doc1 -> {earnings: 10}, Doc2 -> {earnings: 39}, Doc3 -> {earnings: 20}
[19:14:13] <vagelis> So i want back the first 2 documents
[19:15:08] <grinndsw> Gotcha so you're trying to limit your cursor to only contain a max of 50.
[19:15:15] <vagelis> yes
[19:15:23] <vagelis> sry my english are not so good :\
[19:15:29] <grinndsw> It's ok :)
[19:16:00] <grinndsw> I'd say limit to 50 documents (in the even each is 1) and handle that logic application side.
[19:16:05] <grinndsw> *in the event
[19:16:21] <vagelis> I am doing that right now
[19:16:46] <vagelis> There should be a way but im new to mongo and aggregate is not my good skill
[19:17:42] <grinndsw> I think you'd need to use map/reduce for that but that'd be overkill
[19:18:39] <vagelis> I am really struggling with this and i believe maybe its not possible but thanks for ur help
[19:19:26] <grinndsw> It's OK to do it on the application side.
[19:20:28] <grinndsw> vagelis: Whoops! It's possible...give me a second
[19:20:45] <vagelis> cool
[19:37:05] <vagelis> grinndsw is it still possible? :D
[19:40:27] <grinndsw> vagelis: I believe so - I'm trying it with mapReduce()
[19:40:40] <vagelis> oh
[19:41:04] <vagelis> but u said it will be overkill?
[19:41:35] <vagelis> (even though i dont know anything about mapReduce)
[19:41:50] <grinndsw> Oh, yes. It will be totally overkill.
[19:42:16] <grinndsw> I still think you should handle it application side.
[19:42:37] <grinndsw> But I still want to accomplish it with mapReduce because I'm procrastinating.
[19:44:31] <vagelis> Ok then man i will keep it application side dont waste any more time thanks! :)
[19:45:52] <grinndsw> I was so close :-p
[19:49:57] <vagelis> hehe :D
[19:53:30] <deathanchor> so anyone here use tokumx?
[19:53:37] <deathanchor> besides me
[19:57:55] <grinndsw> Support for acid transactions o.O
[19:58:26] <preaction> man, acid's one hell of a trip...
[19:58:56] <grinndsw> It always is.
[19:59:34] <grinndsw> deathanchor: Curious have you tried their transactions support out yet? I wonder how they're doing that.
[20:02:20] <grinndsw> I suppose it's with fractal tree indexes
[20:09:32] <deathanchor> transaction support? We use it for high volume stuff, not very complex stuff
[20:11:23] <grinndsw> Their product page mentions providing native transaction support - I found a blog post on it. Pretty neat stuff.
[20:12:40] <ciwolsey> http://docs.tokutek.com/tokumx/tokumx-transactions.html
[20:13:06] <grinndsw> Ah - thanks :)
[22:03:10] <DelphiWorld> hi mongosters
[22:03:26] <DelphiWorld> how to query my collection inside mongo shell?
[22:10:03] <ehershey> hi DelphiWorld
[22:10:11] <DelphiWorld> hi ehershey
[22:10:12] <ehershey> db.yourCollectionName.find()
[22:10:16] <ehershey> or
[22:10:28] <ehershey> db.yourCollectionName.find({ somecolumn: "somevalue"})
[22:10:41] <DelphiWorld> i want to show all...
[22:10:57] <ehershey> then find() should do it
[22:11:09] <DelphiWorld> hold on
[22:13:02] <DelphiWorld> ehershey: its returning some strange info
[22:13:23] <DelphiWorld> ehershey: function ( query , fields , limit , skip, batchSize, options ){
[22:13:26] <DelphiWorld> and lot of code out
[22:18:05] <DelphiWorld> ehershey: db.users.find().pretty()
[23:00:59] <synthmeat> does anyone have a yaml configuration example somewhere? ideally, with all options in there, set to defaults?
[23:07:19] <cheeser> synthmeat: https://jira.mongodb.org/browse/SERVER-18726
[23:08:01] <cheeser> i hope to be able to generate a full example in a few days, though. one that tracks the docs as new elements come on line.
[23:10:01] <synthmeat> cheeser: that would do. yes. meanwhile, i'll type whatever's live on their site right now. need a gist later on?