[00:46:43] <AlgorithmWizard> does mongodb have clustering of some sort in order to scale? I want to prepare for a hit of about 30k users. currently my site and mongodb run in the same docker container/server and I know this should be separated. aside from this, what else can I do?
[00:51:12] <GothAlice> AlgorithmWizard: This will allow you to divide your data among several servers to distribute read and write load (as well as storage load) using an index to control where records are distributed and a "mongos" proxy/middleware that your applications connect to to distribute queries.
[00:52:18] <GothAlice> Combine this technique with https://docs.mongodb.com/manual/replication/ to ensure your data is redundant and highly available, meaning loss of a single server won't result in overall instability, service outage, or data loss.
[01:00:00] <niftylettuce> 99% of startups fail because they don't have cool fonts in their emails https://github.com/crocodilejs/custom-fonts-in-emails#custom-fonts-in-emails
[09:16:50] <ihre> Hi, I'd like to enable the profiler (mongodb-server 2.4.10-5), so I'm trying `db.setProfilingLevel(1,50)`, but running `show profile` returns `db.system.profile is empty Use db.setProfilingLevel(2) will enable profiling`. Is there anything I might have missed while enabling the profiler?
[09:37:59] <chris|> when using the Java API, what is the propper way of creating a find() cursor to read from secondaries without creating a new client?
[12:37:55] <ngperfex> how can i get the count before applying match and after applying match
[13:17:36] <deever> i can't find instruction on how to update a mongodb installation (from 2.6.x to 3.2.x). are there any resources?
[13:52:54] <chris|> when using the Java API, what is the propper way of creating a find() cursor to read from secondaries without creating a new client or collection?
[15:11:36] <chris|> I believe that is only part of the old synchronous API, the async API has FindIterable
[15:14:38] <cheeser> ok. just making sure. :) one sec.
[15:18:38] <chris|> i can build the FindOperation myself and run it using a custom executor with read preference, but that seems likely to break easily
[15:19:25] <cheeser> so you have your MongoCollection, just do: collection.withReadPreference(ReadPreference.secondaryPreferred()).find(...)
[15:27:23] <chris|> hm, yeah, not sure how I missed that, thanks
[15:34:26] <deever> i can't find instruction on how to update a mongodb installation (from 2.6.x to 3.2.x). are there any resources?
[17:30:12] <cpama> hi all. can anyone help me answer this question? http://stackoverflow.com/questions/40361269/mongoclient-in-php-trying-to-create-and-test-a-full-text-search-index
[17:30:21] <cpama> been stuck on that for a few days..
[17:31:55] <tsturzl> I have never used PHP and mongo together, but I could probably help you out
[17:46:05] <tsturzl> but then you should embed your arrays into one array
[17:46:17] <cpama> are you looking at a specific doc? can you share the link?
[17:46:18] <blizzow> Is 3.4 current, or 3.2? The docs say 3.2, but I got an email saying 3.4 is released? Running apt-get update/dist-upgrade isn't picking up a changed version yet. Do I need a different package name?
[17:46:33] <tsturzl> I think 3.4 is enterprise release
[17:46:44] <tsturzl> and then it will trickle down to us peasants
[17:47:43] <tsturzl> Actually I think 3.4 is an unstable release
[18:18:43] <tsturzl> So lets say a document contains your tokens a total of 30 times, and another 20 times. The one with 30 matches is going to score higher
[18:18:49] <tsturzl> and this is done automatically
[18:21:59] <tsturzl> Also you can pass an array as your second param to `find` to do what you were trying to accomplish with `project`
[18:22:27] <tsturzl> `$project` is an aggregation stage, it doesn't work in regular queries
[18:23:39] <cpama> i don't think i understand your last sentence. but I think I have enough information I need for now. If we need to really look into scoring I guess I will do some research first and then post back here if I have more problems / questions.
[18:31:35] <tsturzl> You were trying to project the fields description, and pidnum
[18:32:14] <tsturzl> you can do that, just pass an array like ["description" => 1, "pidnum" =>1] as your second param to $collection->find()
[21:21:08] <arunbabu> Is it possible that I get different results when querying from pymongo and mongodb console? I'm seeing this behaviour now!
[21:50:35] <StephenLynx> arunbabu, you are querying a different db.
[21:50:47] <StephenLynx> or you don`t get pymongo`s syntax.
[21:50:56] <StephenLynx> or you are querying a different collection.
[21:51:07] <StephenLynx> I find it very hard for pymongo to be bugging out.