Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Big query results solutions?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kamlesh  
View profile  
 More options Oct 1 2012, 2:21 pm
From: Kamlesh <kamlesh.go...@silverpopdev.com>
Date: Mon, 1 Oct 2012 11:21:57 -0700 (PDT)
Local: Mon, Oct 1 2012 2:21 pm
Subject: Big query results solutions?

I am trying to do some aggregate queries on 5M+ document sharded
collections.
And am hitting the 16MB limit very frequently.

First issue is hitting limits between mongod and mongos instances, and cant
do $skip/$limit pipelines without $sort.
What possible solutions are there around this?

Second issue is when doing aggregate queries via Java Drivers, the entire
document is passed back.
This is killing my memory utilization, is there any way to get a cursor
back?

We tried to design bigger documents, but needed to use $unwind and came
back to same issue.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Asya Kamsky  
View profile  
 More options Oct 2 2012, 1:19 pm
From: Asya Kamsky <a...@10gen.com>
Date: Tue, 2 Oct 2012 10:19:32 -0700 (PDT)
Local: Tues, Oct 2 2012 1:19 pm
Subject: Re: Big query results solutions?

Can you post some representative document and the type of aggregations that
you are trying to do?

$skip and $limit don't really make sense without a sort (otherwise it's not
very meaningful since the results aren't ordered)

I assume the 16M limit is the result you are getting - if you post what you
are trying to calculate maybe we can see a way to create a smaller result
or possibly there may be a way to split up the job into multiple
aggregation queries that are more management in size?

Asya


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Millman  
View profile  
 More options Oct 2 2012, 1:35 pm
From: Sam Millman <sam.mill...@gmail.com>
Date: Tue, 2 Oct 2012 18:35:07 +0100
Local: Tues, Oct 2 2012 1:35 pm
Subject: Re: [mongodb-user] Re: Big query results solutions?

There is no out option for the aggregation framework which means it just
outputs as a single BSON document.

It sounds like you might need an incremental job doing this once every so
often.

On 2 October 2012 18:19, Asya Kamsky <a...@10gen.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »