[09:46:18] <mids> what percentage are you deleting?
[09:48:27] <idefine> I'm using the node-mongodb-native driver and had a question about performing an update on a collection inside of a cursor.each. Is it safe to do this? I keep running into problems.
[09:54:22] <mids> Lujeni: how many documents are there in total, ballpark; is there an index on the datetime field?
[10:05:04] <idefine> i solved it by using toArray instead of each.
[10:05:24] <idefine> but i believe each should also work for that no?
[10:08:25] <Lujeni> mids, ~200millions. Yeah, i use _id default (objectid).
[10:09:24] <qpok> c# driver users, I have a bsonid field that is a property whose value is composed of of other properties. It has no setter. Do I need a custom serializer to be able to perisist & load it? or is there an easier way
[10:16:11] <qpok> okies AlwaysIgnoreExtraElementsConvention seems to work too.. yet it comes with other undesired effects. so a custom serializer it is :(
[11:09:53] <qpok> and ignore my previous ranting... neither custom serialization nor ignoring extra elements does the job. But a custom IMemberFinderConvention does
[11:13:25] <ron> nice. 10gen webinars have much better scheduling information now. nice.
[13:38:57] <ron> owen1: you failed. you're a big, fat failure.
[15:03:43] <Honeyman> Hello. Can I retrieve only a subobject, which is a result of find lookup, rather than the whole top-level document, or all subobjects? http://www.mongodb.org/display/DOCS/Retrieving+a+Subset+of+Fields are unclear about it...
[15:04:49] <Honeyman> For example, if I have a collection of 'users' and each user has a sub-collection of "posts", and I am looking up to a specific post (say, by its title), how can I get only that post?
[15:05:36] <Lujeni> Hello - Use compact on single collection can increase performance or just larger objects might reuse it ?
[15:05:58] <Derick> Honeyman: you can not do that right now; filter it out in your application's model
[15:17:02] <namidark> mongo config server has the wrong hosts in it and the same is true for the mongos; how can I correct this? I fixed it in the repliation set and serverStatus shows the correct hosts on the replica set... but its not on the config/mongoS
[15:31:20] <feklee> I'm using mongodb for node.js, and I successfully connected to a DB. But there seems to be no "save()" method, which I've seen in various examples, e.g.: http://www.youtube.com/watch?v=w5qr4sx5Vt0&feature=player_detailpage#t=963s
[15:32:41] <feklee> Furthermore, "db.posts" is undefined, although I created a "posts" collection using "db.createCollection()".
[15:33:17] <feklee> Are examples using "save()" outdated? Are they depending on a different driver?
[15:36:22] <int> I am making an analytics prototype with mongodb. I am tracking a "Product Viewed" event. Everytime I product page is loaded, I dump a record in a collection with all the required metadata such as product name, id, username of user who viewed it.
[15:37:05] <int> what's a good way to query this collection to get out all the page views for for a specific product name
[15:37:25] <int> and then filtering out stuff like all products viewed by a particular username
[15:44:59] <eka> hi all, dumb question, in what affects the creation of an index with direction (asc/desc)? the ordering?
[15:49:08] <SLNP> Hi, what does getShardVersion: "mdbfoo.foo" relate to?
[15:59:31] <choffstein> Hi all! I have a schema design question for you. I am trying to create a collection of documents for stock information. Within each document will be information about the company, the cusip, and time-series data for how the stock was trading. I want the ability to update the time-series without necessarily having to fetch the full document, alter it, and update it. a) is there a way for me to "append" a sub
[15:59:31] <choffstein> -document without downloading the document or the sub-document, or b) is there a better way for me to design my schema?\
[16:02:21] <bradc> If I remove a replica member and then add a new one in a sharded setup, should I have to update the shard config on the config servers ?
[17:22:41] <tystr> is there a way to set slaveok globally for a node? like, in the configuration or something, instead of having to do rs.slaveOk() for each connection?
[17:26:33] <ranman> tystr: rs.reconfig({someconfiguration}) doesn't let you do that?
[17:27:04] <TrahDivad_> Can someone tell me if it's possible do a find AND a count in one query?
[17:27:07] <tystr> ranman i dont' know, that's what I'm asking :D
[17:28:05] <tystr> ranman looking here, I don't see that it's possible http://www.mongodb.org/display/DOCS/Replica+Set+Configuration
[17:28:56] <adamcom> TrahDivad_: not using the count command, but
[17:32:38] <tystr> basically our BI guy is trying to do reporting off of a secondary, and with the software he's using doesn't seem like we can set the slaveok option
[17:35:44] <adamcom> TrahDivad_: if you run it without the parens you will see it's just a bit of javascript in the shell to iterate the cursor and count each iteration
[17:37:03] <adamcom> db.foo.count({status : 10}) returns the same thing
[17:37:20] <adamcom> I was just being explicit in my response to your question :)
[17:38:39] <TrahDivad_> adamcom: but can I get the data from the find also? I'd like both.
[17:42:21] <adamcom> if you get the data from a find, just do the count on the client side
[17:43:27] <adamcom> if you are asking can you do that from the shell, then I don't know of a way
[18:08:44] <chubz> PHP Warning: Module 'mongo' already loaded in Unknown on line 0. Any ideas?
[18:45:18] <halcyon918> hey guys, do you know if it's possible to execute two atomic updates to the same document, in a single call? I need to set two fields on a document and didn't want to make two calls if I could do it in one…
[18:46:02] <lizzin> so a database contains collections and collections contain documents, right?
[18:54:29] <lizzin> i created a db from within an app, added a few documents and now i have some files in /data/db/. the database created in the app is called 'phonebook'. the files i see in /data/db/ are phonebook.1, phonebook.0, phonebooks.1, phonebooks.0, phonebook.ns, and phonebooks.ns
[18:57:10] <robbe_> what would be the best practice of storing comments to a given article? inside the article collection or in a seperate comments collections, just storing the reference object id to the article?
[18:57:53] <ron> robbe_: that really depends on a whole set of questions.. like how you want to query your data and so on.
[18:58:17] <switz> really? I just said so...it makes more sense to come here and ask if that's possible than go through 40 collections by hand.. so yes.
[19:04:02] <dardevelin> hi, i'm not sure if this is the correct place to post this kind of questions. I just installed mongodb 1:2.0.6-1 from my sid repository and automatically selected the dependencies mongodb-dev mongodb-server mongodb-clients of the corresponding version. all went fine. i can see that mongo is up and running after installation. So I am trying to compile this -> http://api.mongodb.org/c/current/tutorial.html tutorial, but I can't file whe
[19:04:02] <dardevelin> re the mongo-c-driver is located and or mongo.h file
[19:04:54] <dardevelin> so my request is, can someone give me directions on where can i find them ? did I missed some packaged or something ? thanks in advance
[19:06:12] <ron> dardevelin: have you looked at the following page from that link?
[19:06:44] <dardevelin> yes it used /path/to/mongo-c-driver
[19:09:55] <dardevelin> ron, eh, do I really have to get it from github ? I mean that completely loses the point of having a package manager in first place
[19:17:32] <algernon> dardevelin: the official C driver is not packaged for Debian
[19:18:05] <dardevelin> algernon, oh ok, that explains it then. thanks :)
[19:18:06] <algernon> dardevelin: however, if you want a packaged C driver, there's libmongo-client0
[19:18:49] <dardevelin> humm, let me checkout were they differ then . Thanks once again :)
[19:18:50] <lizzin> what are .1 and .ns files in my /data/db ?
[19:19:39] <algernon> dardevelin: the official driver is pure C, libmongo-client uses glib underneath, and has a different API, an extensive test suite and all that stuff. It didn't break API or ABI for quite a while yet, while the official driver did both :P
[21:31:37] <diegok> kchodorow: is there any plans to release a new version of the perl driver to cpan?
[21:32:20] <diegok> kchodorow: I've fixed it to work with array references the same way it works with Tie::IxHash https://github.com/diegok/mongo-perl-driver/commit/6dc2ab6593cdfe45d40c62b0e5052b24a872dd28
[21:32:51] <diegok> kchodorow: it was documented to work on some parts but it didn't
[21:33:13] <diegok> kchodorow: I've added some tests for it
[23:38:29] <DigitalKiwi> so say I want to represent a follower/followee relationship, I could do it like { "_id" : ObjectId("4ffea5e32e28a6ff0ce9d50b"), "fe" : ObjectId("4ffe77e42e28a6ff0ce9d4e0"), "fr" : ObjectId("4ffe77e42e28a6ff0ce9d4e0") }
[23:38:45] <DigitalKiwi> and have db.friendships.ensureIndex({fe:1, fr:1}, {unique: true})
[23:40:06] <DigitalKiwi> now that will keep me from trying to add the same relationship right, but to keep from erroring I still have to check before I try to add one, which means if I'm checking anyway, do I need the index? Or is it good to have it just to make sure I don't...and should catch the error too...