[00:16:30] <jedir0x> does the java driver automatically select slaves when reading and the master when writing?
[01:53:06] <arex\> Anyone familiar with MongoDB Replica Sets who can take a look at my planned setup (Two Replica Members and an Arbiter)? https://www.lucidchart.com/publicSegments/view/506f8d6d-4d48-4092-9d20-11940a460d7f/image.png
[01:53:20] <arex\> In particular I'm wondering if it makes sense to have 3 NICs as shown in the diagram.
[01:59:15] <arex\> kali: As you can see, I made a server dedicated to arbitration :-D
[03:03:43] <quazimodo> any plans for transactions in mongo?
[03:30:29] <LouisT> say i use db.foo.find(), how can i search for part of a string within the results?
[03:32:05] <crudson> LouisT: use a regular expression, but be aware that only matching the start of a string will use an index
[05:32:45] <crudson> using what mapping framework?
[05:34:44] <tystr> under what network connectivity circumstances would a primary node in a replica set step down?
[05:34:49] <crudson> maybe you have it declaratively as an Array in the model but it's in fact a Hash
[05:35:55] <crudson> tystr: I wish I could offer you more but I am not an expert on replsets other than simple cases that the documentation goes over http://docs.mongodb.org/manual/core/replication/
[05:36:59] <tystr> I finally found out that amazon aws is having network connectivity issues which I assume is responsible for my primary stepping down
[05:37:11] <crudson> that's what we thought initially :)
[05:37:26] <tystr> ya me too, but they didn't update their status dashboard until a couple of min ago
[06:19:20] <quazimodo> this doesnt feel that different from a relationaldb
[06:19:38] <quazimodo> i mean, i'm not making any schema but thats about it so far
[06:20:03] <quazimodo> maybe its because rails turns table based data into object models anyway,
[07:40:54] <tpae> hello.. i read somewhere that it's difficult to create analytics with mongodb.. is that true?
[07:50:02] <crudson> there is a great presentation on this - one sec
[07:57:46] <crudson> http://www.10gen.com/presentations/mongosf-2012/mongodb-for-analytics but also search analytics on this page http://www.10gen.com/presentations
[08:46:10] <tpae> Is there a way to "if exists, return. if not, insert" ?
[09:02:01] <tpae> kali: if both new and upsert is set to true, it will return the document ? "In version 2.2, the findAndModify command returns null when upsert is true."
[09:04:34] <kali> tpae: not sure, but it's easy to try
[09:46:02] <arex\> Anyone familiar with MongoDB Replica Sets who can take a look at my planned setup? https://www.lucidchart.com/publicSegments/view/506f8d6d-4d48-4092-9d20-11940a460d7f/image.png
[09:46:07] <arex\> In particular I'm wondering if it makes sense to have 3 NICs as shown in the diagram
[09:54:33] <kali> arex\: i would use the same NIC for arbiter and replication. the whole point of the arbiter is to diagnose faults, so it should be "in band"
[10:39:14] <arex\> I posted it to serverfault if anyone is interested. I included two diagrams (proposed designs)
[13:43:28] <arex\> kali: I re-organized the diagram and added a web server. Does this still make sense to you? https://www.lucidchart.com/publicSegments/view/507008a7-db5c-41c9-ac22-652a0a7c4e7c/image.png
[13:44:56] <arex\> kali: Ops, wrong link. Here is the correct one: https://www.lucidchart.com/publicSegments/view/507034cb-98c4-4d05-b1db-3b340ad6e19c/image.png
[13:56:12] <aster1sk> Here's an updated MongoDB url shortener http://5kb.us/
[13:56:28] <aster1sk> Let me know what you think, there's no captcha and the API is super simple.
[13:56:48] <aster1sk> I know there's a ton of them but I figured I'd take a stab at it, perfect project for mongo that's for sure.
[14:05:14] <arturhoo> Hi there! I have a 15M documents collection, and they have a certain field which is indexed. The index size is 400MB and fits nicely in RAM. When I try to count all the documents which have a certain value for this field, the operation takes a long time to complete (the disk is being sequentially scanned). Shouldn't it be quick, as this information can be taken from the index? Thanks
[14:06:07] <kali> arturhoo: you're hitting this one https://jira.mongodb.org/browse/SERVER-1752
[14:12:54] <arturhoo> kali: thanks! I took a look at it, and it is sad to see that this issue hasn't been addressed. I should expect poor performance on my aggregation operations that have $match as well, right?
[14:43:09] <arex\> People are teling me i don't really need to have a private network for internal replica set traffic
[14:43:16] <arex\> What do you think about that, kali?
[14:43:34] <arex\> "Mongo is not as cluster-featured as MS is, so you can very well get away with only the single NIC in MongoDB"
[14:52:21] <kali> arex\: i would keep it simple too
[16:10:36] <wahben> Hi all, I am having trouble understanding how to limit the $nearSphere query with $maxDistance. What am I supposed to enter in $maxDistance? Kilometers?
[16:12:39] <wahben> Actually nevermind, I think that I figured it out.. anyways too bad I can't use maxDistance with mongoengine :P
[16:26:10] <wahben> Question I have a query as follows: db.base_ad.find( { geo_point: { $nearSphere: [45.521046, -73.585507], $maxDistance: 2/6371.0 }}) which should return all items in a radius of 2 kilometers from the given lat/ long pair. However, it returns locations up to 7 kilometers in range. Why is that?
[17:02:39] <ShiintoRyuu> hello. Ive been having this idea of a database system architecture that could be helpful for developing and rapid deployment on a live system, now Im wondering if this is anywhere near common practice. I was thinking of using replica sets between my hosted server and my home pc, so that I can turn my pc off at any time and whenever its online, all data on mongodb will be replicated.
[17:02:55] <ShiintoRyuu> does anyone have experience with that?
[17:11:44] <wahben> Does anyone know what formula Mongodb uses to filter results using nearSphere or centerSphere?
[22:23:53] <dorzey> where's the best place to ask questions about the java driver?
[23:07:46] <arex\> Question about replica sets... When you connect to it, what hostname do you specify? What if that server is down? Is this handled in application code? I know SQL Server has an "Availability Group Listener Virtual Network Name" for this...
[23:08:00] <arex\> by "that server" i mean "that replica member"
[23:42:25] <arex\> To answer my own question, I guess you can specify all the replica member hostnames in the code, and it'll try each one until it finds one that works