[00:24:23] <tomasso> i have a collection of objects that currently do have a lat and lng properties embedded. Im reading about geospatial indexes, and it says that i need to use GeoJson object. The thing is that the GeoJson format pretends to be the central feature of the object, so that it has a definition, and then a properties field in which you can embeed your stuff.. the question is. Should I create a list of GeoJSON objects and in the properties field reference my curren
[00:51:17] <ColKurtz> if i have a resource that could be one of multiple types, how should I model that? for example, I have Posts, and each of those posts could either be an image, video, or text.
[00:53:14] <ColKurtz> should there be a "type" key, with a value that indicates which type?
[01:53:44] <foobar2k> I'm getting a strange error when querying a mongos instance
[01:53:52] <foobar2k> "too many retries of stale version info"
[01:54:01] <foobar2k> restarting mongos didnt help
[02:55:34] <rdegges_> Hey all, I'm considering using Mongo for a new project, but have a question I can't really seem to figure out from anywhere else.
[02:55:54] <rdegges_> I've got this project which runs a series of different web scrapers, and collects loosely structured data as JSON.
[02:56:19] <rdegges_> Right now I'm POST'ing all this data into a PostgreSQL database, but it's sort of annoying as I've got to maintain a schema for each scraper source, and the data is non-relational.
[02:56:40] <rdegges_> I'm also having issues getting my data OUT of the postgres database: I've got a simple GET API that allows me to paginate through all my results.
[02:56:55] <rdegges_> And it's really slow to do the whole: SELECT * FROM blah LIMIT 25 OFFSET 25;
[02:58:02] <cheeser> "quicker" is probably hard thing to say
[02:58:04] <rdegges_> The main thing I'd like is to have my GET API become a lot quicker, so my client applications can quickly paginate through the entire dataset.
[13:06:17] <durre> I wish to query all documents created after a certain date. is there a site that converts human readable dates -> timestamp -> hex -> mongodb id? :)
[13:09:34] <Nodex> you can't convert a timestamp into an ObjectId
[13:37:28] <ckrause> I am new to mongoDB and I don't know how to reference a property to modify it
[13:37:59] <ckrause> in this case, I want to take document.symbol and update it to the UpperCase version of itself.
[13:42:12] <ckrause> I see there is a $toUpper, so I will use it in this case, however I still would like to know how to access a property to modify it
[13:43:51] <ckrause> well, $toUpper didn't work as I expected. I tried to use it like $inc
[14:08:38] <Nodex> ckrause : you can't use javascript functions like you're trying to
[14:08:52] <Nodex> the shell has no concept of "this"
[14:09:16] <ckrause> so I need to write a javascript script?
[14:09:35] <Nodex> you need to write somehting to loop it in a scripting language
[14:10:02] <ckrause> the shell will execute JavaScript though, correct?
[14:36:09] <the_lord> Hello, is there a way to tell mongo to ignore fields if they are being stored as null?
[14:47:30] <jmar777> the_lord: Have you looked at $exists yet? http://docs.mongodb.org/manual/reference/operator/query/exists/
[15:24:05] <fvs> hi, newbie here, running mongod with auth=true. I can't get records but am able to post without setting auth via localhost. Is this normal?
[15:26:58] <fvs> output from get/post here: http://pastie.org/8465657
[15:32:22] <the_lord> jmar777, yeah, but I want it in the store level
[15:32:48] <jmar777> the_lord: not sure I follow, then. You want it to just not store null values at all?
[15:33:06] <the_lord> jmar777, I mean, I know that if you don't _explicitly_ tell mongoid that a field is nil, it won't send field=null to the document
[17:33:09] <Juv1228> Hello, is it possible in the C# driver to specify default values for items in an array/list
[17:33:48] <Juv1228> for example, I have a List<double> which may contain many instances of 0, so I would like to set 0 as the default value and have it not serialize the default
[18:08:35] <gen0cide_> Ok mongo experts, here's a question: I've got latest source, latest scons, but I ONLY want the libmongoclient.a installed to my system - I don't seem to be able to enforce that with scons mongoclient --64 --release
[18:08:39] <gen0cide_> any idea / tips / thoughts?
[18:11:15] <gen0cide_> everything I've read online tells me I need to do a full installation which frankly seems stupid
[18:26:15] <Nodex> it's friday night, not sure what you expect
[18:37:04] <maverick1> Hi, We are planning to setup a Disaster Recovery. Ideally we'd like to sycn the data from the production Replica Set to a node in DR. and from this DR node to 2 other nodes.
[18:37:04] <maverick1> and these 3 DR nodes shouldn't be primary at any time(priority=0 works?). but may participate in election.
[18:41:20] <Slacker1> Can some one answer the maverick1's question?
[18:44:09] <cheeser> i think priority=0 should work
[18:47:08] <Slacker1> cheeser: thank you, and as 3 nodes in DR, we want only one node(Let's x ) to sync the data from original replica set and others 2 nodes should sync data from this DR node x.
[18:52:58] <cheeser> ehershey: do you recall if you can force one replica set to only sync from another? I want to say that's possible but I don't recall offhand.
[19:52:33] <joannac_> cheeser: very late, but http://docs.mongodb.org/manual/tutorial/configure-replica-set-secondary-sync-target/
[20:03:57] <clamothe> In querying an array, can I use both $in and $all? What about multiple $in's and an $all? I.e. db.coll.find({characteristics: {$all: ["required1", "required2"], $any: ["blue", "green"], $any: ["flat","round"]})
[20:07:25] <TylerB> If I were to create an index on "age", then do a query on "age" and "gender", would the "age" index be used and then the "gender" part of the query be done? Would it improve performance? I've been unable to find a concrete answer online.
[21:26:41] <gen0cide_> I've got latest source, latest scons, but I ONLY want the libmongoclient.a installed to my system - I don't seem to be able to enforce that with scons mongoclient --64 --release - all I want is the /usr/lib64/libmongoclient.so to exist :)
[22:01:48] <DaveKS> i'm running 2.2.2 with the mongo driver for ruby and am trying to do a $project after a $group using aggregate and it's not working at all.... https://gist.github.com/davesloan/7378377
[22:13:29] <ctorp> Is there a way to pipe a mongo query to vim?
[22:35:55] <DaveKS> not sure this is the right room for this... http://stackoverflow.com/questions/19869555/the-project-operation-fails-to-work-with-mongoid-aggregate-method-when-used-aft
[23:36:36] <ctorp> Is there a way to pipe a mongo query to vim?
[23:58:30] <parashute> I am using Spring Data. What annotation should I use for member objects. For example, for person JSON {name:"", address: {"line1":"", "line2": ""}}. For name I am using @Field annotation. What annotation should I use for address?