PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 26th of July, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:36:05] <steelbrain> Does mongodb retrieve all of the rows when we query something? or retrieves when one by one as we iterate over results?
[01:36:29] <steelbrain> I am talking about the PHP/Hack client.
[01:36:46] <steelbrain> s/when/them
[01:37:13] <StephenLynx> there are no rows.
[01:37:27] <steelbrain> by rows I meant documents.
[01:37:49] <steelbrain> (I come from an RDBMS background :D )
[01:38:01] <StephenLynx> find uses a cursor that retrieves in batches, afaik
[01:38:13] <StephenLynx> aggregate will return the whole array at once
[01:38:38] <StephenLynx> you can use toArray on the cursor to fetch the whole array at once
[01:39:05] <steelbrain> I actually want them one by one. and It's a cool thing that it does that already
[01:39:33] <steelbrain> as I have some logic in the app land and I need to meet it's limit, I don't know if the required limit will be met in the first rows of that count or maybe a thousand.
[01:39:53] <steelbrain> s/rows/documents
[01:42:12] <StephenLynx> the limits works on the cursor
[01:42:32] <StephenLynx> if you use the function to retrieve one by one, it will retrieve one by one no matter how many documents the cursor points to
[06:54:07] <Doyle> Hi guys. When running mongoperf, What drive should it be hitting??? The dbpath?
[06:54:11] <Doyle> It only ever hits the root device.
[06:54:14] <Doyle> I can't believe this is the expected behavior.
[06:54:27] <Doyle> If anyone has a ProTip for me, it'd be appreciated.
[06:54:51] <Doyle> I've tested on CentOS6,7 and Debian... something recent.
[10:53:10] <aps> What does "MongoError: topology was destroyed" mean?
[11:35:54] <chetandhembre> hi
[11:36:40] <chetandhembre> what "topology destroyed error occures" ?
[13:23:47] <kexmex> Hi
[13:24:30] <kexmex> i got a question on c# driver. I have old code that does WriteUnacknowledged and then does GetLastError() in order to detect a dupe insertion. Now getLastError() is obsoleted-- how to gracefully detect dupes? Or do I have to catch?
[14:18:08] <Mikk36> hey
[14:18:26] <Mikk36> How would i go about recreating this query in MongoDB? SELECT * FROM (SELECT id, text FROM logs ORDER BY id DESC LIMIT 5) as tbl ORDER BY tbl.id ASC
[14:19:03] <Mikk36> ie, select 5 elements in the descending order and then return them in the ascending order
[18:41:24] <angular_mike_> Hello, it seems like `mongoimport` does not come with mongodb installation by default. How do I get it?
[18:47:00] <angular_mike_> it appears that it is being distributed in a separate package, community/mongodb-tools for Arch
[19:54:09] <synthmeat> a quick question - i have 1GB/1CPU mongo instance. 7 clients. should it be better to abstract in code for those clients to act through another singular, so i don't need many connections to mongo from mny clients?
[19:55:12] <synthmeat> latency caused by mediator shouldn't be an issue
[20:32:52] <dan801> Amateur question here.. but what is the structure behind a mongo database? Does it just use arrays of json objects?
[21:06:32] <danijoo> db.collection.createIndex( {someField:1}, {background: 1} )
[21:06:47] <danijoo> shouldnt this return in mongoshell and building in background?
[21:25:50] <GitGud> hey danijoo
[21:26:27] <danijoo> hey