|
|
Marek Miglinski 2011-12-02, 12:37
Hello guys,
I have a group of users aggregated by day period, lets assume there are 10mill users and each user has got 1000 transactions.
Now is there a way to iterate through this group NOT foreach, but foreach 10! records in that group? So I could safe space and count more users per action, export less records.
Thanks, Marek M.
+
Marek Miglinski 2011-12-02, 12:37
pablomar 2011-12-02, 14:15
what about? b = group a by ... c = foreach b { generate ... }
On 12/2/11, Marek Miglinski <[EMAIL PROTECTED]> wrote: > Hello guys, > > I have a group of users aggregated by day period, lets assume there are > 10mill users and each user has got 1000 transactions. > > Now is there a way to iterate through this group NOT foreach, but foreach > 10! records in that group? So I could safe space and count more users per > action, export less records. > > > > Thanks, > Marek M. >
+
pablomar 2011-12-02, 14:15
Thejas Nair 2011-12-02, 18:48
I haven't understood what you are trying to do. Can you explain with an example of input and output ? -Thejas On 12/2/11 4:37 AM, Marek Miglinski wrote: > Hello guys, > > I have a group of users aggregated by day period, lets assume there are 10mill users and each user has got 1000 transactions. > > Now is there a way to iterate through this group NOT foreach, but foreach 10! records in that group? So I could safe space and count more users per action, export less records. > > > > Thanks, > Marek M.
+
Thejas Nair 2011-12-02, 18:48
Dmitriy Ryaboy 2011-12-02, 23:06
group by (user_id, semi-random-number_between-0-and9) ?
On Fri, Dec 2, 2011 at 4:37 AM, Marek Miglinski <[EMAIL PROTECTED]> wrote: > Hello guys, > > I have a group of users aggregated by day period, lets assume there are 10mill users and each user has got 1000 transactions. > > Now is there a way to iterate through this group NOT foreach, but foreach 10! records in that group? So I could safe space and count more users per action, export less records. > > > > Thanks, > Marek M.
+
Dmitriy Ryaboy 2011-12-02, 23:06
Marek Miglinski 2011-12-09, 13:31
That was a good advice Dima, thanks ;) Marek M. ________________________________________ From: Dmitriy Ryaboy [[EMAIL PROTECTED]] Sent: Saturday, December 03, 2011 1:06 AM To: [EMAIL PROTECTED] Subject: Re: FOR - EACH?
group by (user_id, semi-random-number_between-0-and9) ?
On Fri, Dec 2, 2011 at 4:37 AM, Marek Miglinski <[EMAIL PROTECTED]> wrote: > Hello guys, > > I have a group of users aggregated by day period, lets assume there are 10mill users and each user has got 1000 transactions. > > Now is there a way to iterate through this group NOT foreach, but foreach 10! records in that group? So I could safe space and count more users per action, export less records. > > > > Thanks, > Marek M.
+
Marek Miglinski 2011-12-09, 13:31
|
|