Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Perl MongoDB Results and Version (batch_size??)

by poj (Abbot)
on Sep 22, 2018 at 07:01 UTC ( [id://1222828]=note: print w/replies, xml ) Need Help??


in reply to Perl MongoDB Results and Version (batch_size??)

'_batch_size' => 101

Yes, see default size. You can set it in the options document after the pipeline array.

my $all_collect = $collect->aggregate([ {'$group' => { '_id' => {_path => '$path' , _ip => '$IP', _time => '$TIME'}, '_count' => { '$sum' => 1}, '_docs' => { '$push' => '$_id' } } }, { '$match' => { '_count' => { '$gt' => 1} }} ], { 'cursor' => { 'batchSize' => 10000 } } );
poj

Replies are listed 'Best First'.
Re^2: Perl MongoDB Results and Version (batch_size??)
by maikelnight (Sexton) on Sep 22, 2018 at 13:09 UTC
    awesome mate, thanks a lot! that solved the issue! big ups!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1222828]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found