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
Aggregation that fails only in sharded environment
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
 
Mark Hansen  
View profile  
 More options Oct 4 2012, 1:20 pm
From: Mark Hansen <m...@digitalbrandmine.com>
Date: Thu, 4 Oct 2012 10:20:24 -0700 (PDT)
Local: Thurs, Oct 4 2012 1:20 pm
Subject: Aggregation that fails only in sharded environment

I have an aggregation that uses limit at the end to keep the results under
the 16MB limit.  However, when I run it in a sharded environment, it
fails.  The $limit comes after a $sort - and I guess that mongos has to get
the entire sorted shard results back and interleave with the other shards
in order to produce the full sorted list that gets limited.

Is there anyway around this?  Can I output the results of aggregation to a
temporary collection?

Here is the error message:

mongos> db.ga_page_path.aggregate(match, group, sort, limit);
{
    "errmsg" : "exception: sharded pipeline failed on shard megaset3: {
errmsg: \"exception: aggregation result exceeds maximum document size
(16MB)\", code: 16389, ok: 0.0 }",
    "code" : 16390,
    "ok" : 0


 
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.
keith kirk  
View profile  
 More options Oct 5 2012, 12:31 pm
From: keith kirk <kmf...@gmail.com>
Date: Fri, 5 Oct 2012 09:31:38 -0700 (PDT)
Local: Fri, Oct 5 2012 12:31 pm
Subject: Re: Aggregation that fails only in sharded environment

Is this no way to better limit the amount of documents you're including by
having better constraints in a $match - With out seeing your actual query,
I believe that would be the first place I would look.


 
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.
Stephen Lee  
View profile  
 More options Oct 5 2012, 1:00 pm
From: Stephen Lee <stephen....@10gen.com>
Date: Fri, 5 Oct 2012 10:00:17 -0700 (PDT)
Local: Fri, Oct 5 2012 1:00 pm
Subject: Re: Aggregation that fails only in sharded environment

I also assume that you've tried the aggregation without the sort?    In
general, can you try your query w/ and w/o each successive step in your
aggregation pipeline to see if the exception when and where that exception
is throw?


 
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 »