From kidpollo at gmail.com Fri Jan 2 13:30:18 2009 From: kidpollo at gmail.com (Paco Viramontes) Date: Fri, 2 Jan 2009 12:30:18 -0600 Subject: [Activewarehouse-discuss] error in adapter_extensions.rb Message-ID: <092D3BC0-BB2C-47D4-9CE1-209E1DCF9664@gmail.com> There is an error I identified, I thing its a problem with new ruby gems that has require gem deprecated, someone might want to check it out I fixed the problem just changng require_gem to gem in line 9 of adapter_extensions.rb PAco From kidpollo at gmail.com Sat Jan 3 02:05:54 2009 From: kidpollo at gmail.com (Paco Viramontes) Date: Sat, 3 Jan 2009 01:05:54 -0600 Subject: [Activewarehouse-discuss] tutorial, guidance? Message-ID: <32AEE22A-5BBB-4FBB-A92C-A86230B3295C@gmail.com> Hi again Now I got etl to work I wanted to ask for a tutorial or guidance on how to use activewarehouse I have experience using anaysis services and mondrian but I have no idea on where to start or how to make a view to drill down data or query data in my app with activewarehouse, could I please get some pointers or guidence or sample code to start? thanks in advance PAco From skumar at attinteractive.com Mon Jan 5 19:28:09 2009 From: skumar at attinteractive.com (Sarat Kumar) Date: Mon, 5 Jan 2009 16:28:09 -0800 Subject: [Activewarehouse-discuss] Fixes I made to run ETL-0.9.0 Message-ID: Hi All, Looks like ETL-0.9.0 is still being developed on ActiveRecord 2.0.2 (where as the current version is 2.2.2.) Fix 1 : So, I had to bring back my activerecord to version 2.0.2 And Added a public method :gem to Kernel module to make the following snippet of code to work with current Kernel ( where require_gem is not defined and gem is defined as a private method) unless Kernel.respond_to?(:gem) Kernel.send :alias_method, :gem, :require_gem End Fix 2: Added following lines as first line in etl.rb to make gem available as a public method. module Kernel public :gem end Thanks, Sarat -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis at haskinferguson.net Tue Jan 13 15:27:55 2009 From: denis at haskinferguson.net (Denis Haskin) Date: Tue, 13 Jan 2009 15:27:55 -0500 Subject: [Activewarehouse-discuss] rails version? Message-ID: <496CF94B.2060803@haskinferguson.net> It appears activewarehouse is not compatible with rails 2.2.2 (probably any 2.2 version... maybe even not 2.1?). If I had time I would see about forking and fixing, but I unfortunately don't. Dang... dwh -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis at haskinferguson.net Wed Jan 14 15:51:07 2009 From: denis at haskinferguson.net (Denis Haskin) Date: Wed, 14 Jan 2009 15:51:07 -0500 Subject: [Activewarehouse-discuss] strange difficulties.. 'no such file to load' Message-ID: <496E503B.9000807@haskinferguson.net> (Apologies to Anthony, I already sent this to him on github) This may a general gem problem, not activewarehouse-etl, but... I cloned the project to my local machine, did a 'rake gem' and 'sudo rake reinstall', and it seems to have installed fine, but when I try the command 'etl', I get: /usr/bin/etl:19:in `load': no such file to load---etl (LoadError) from /usr/bin/etl:19 Now, this may well be something botched in my local gem install, but nothing else is broken. Any thoughts? (And Sarat, I may pick up your changes and commit them to my fork on github... or do you already have it forked up there?) Or is the 0.9.1 gem available somewhere? Thanks, dwh -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthonyeden at gmail.com Wed Jan 14 18:11:12 2009 From: anthonyeden at gmail.com (Anthony Eden) Date: Wed, 14 Jan 2009 18:11:12 -0500 Subject: [Activewarehouse-discuss] rails version? In-Reply-To: <496CF94B.2060803@haskinferguson.net> References: <496CF94B.2060803@haskinferguson.net> Message-ID: The latest in git should work with the latest 2.x of Rails. -A On Tue, Jan 13, 2009 at 3:27 PM, Denis Haskin wrote: > It appears activewarehouse is not compatible with rails 2.2.2 (probably any > 2.2 version... maybe even not 2.1?). If I had time I would see about > forking and fixing, but I unfortunately don't. > > Dang... > > dwh > > _______________________________________________ > Activewarehouse-discuss mailing list > Activewarehouse-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/activewarehouse-discuss > > -- GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++** http://anthony.mp From anthonyeden at gmail.com Wed Jan 14 18:13:18 2009 From: anthonyeden at gmail.com (Anthony Eden) Date: Wed, 14 Jan 2009 18:13:18 -0500 Subject: [Activewarehouse-discuss] strange difficulties.. 'no such file to load' In-Reply-To: <496E503B.9000807@haskinferguson.net> References: <496E503B.9000807@haskinferguson.net> Message-ID: What version of RubyGems are you running? -A On Wed, Jan 14, 2009 at 3:51 PM, Denis Haskin wrote: > (Apologies to Anthony, I already sent this to him on github) > > This may a general gem problem, not activewarehouse-etl, but? > > I cloned the project to my local machine, did a 'rake gem' and 'sudo rake > reinstall', and it seems to have installed fine, but when I try the command > 'etl', I get: > > /usr/bin/etl:19:in `load': no such file to load?etl (LoadError) > from /usr/bin/etl:19 > > Now, this may well be something botched in my local gem install, but nothing > else is broken. Any thoughts? (And Sarat, I may pick up your changes and > commit them to my fork on github... or do you already have it forked up > there?) > > Or is the 0.9.1 gem available somewhere? > > Thanks, > > dwh > > _______________________________________________ > Activewarehouse-discuss mailing list > Activewarehouse-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/activewarehouse-discuss > > -- GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++** http://anthony.mp From denis at haskinferguson.net Wed Jan 14 18:32:34 2009 From: denis at haskinferguson.net (Denis Haskin) Date: Wed, 14 Jan 2009 18:32:34 -0500 Subject: [Activewarehouse-discuss] strange difficulties.. 'no such file to load' In-Reply-To: References: <496E503B.9000807@haskinferguson.net> Message-ID: <496E7612.5000502@haskinferguson.net> ~$ gem -v 1.3.1 Anthony Eden wrote: > What version of RubyGems are you running? > > -A > > On Wed, Jan 14, 2009 at 3:51 PM, Denis Haskin wrote: > >> (Apologies to Anthony, I already sent this to him on github) >> >> This may a general gem problem, not activewarehouse-etl, but? >> >> I cloned the project to my local machine, did a 'rake gem' and 'sudo rake >> reinstall', and it seems to have installed fine, but when I try the command >> 'etl', I get: >> >> /usr/bin/etl:19:in `load': no such file to load?etl (LoadError) >> from /usr/bin/etl:19 >> >> Now, this may well be something botched in my local gem install, but nothing >> else is broken. Any thoughts? (And Sarat, I may pick up your changes and >> commit them to my fork on github... or do you already have it forked up >> there?) >> >> Or is the 0.9.1 gem available somewhere? >> >> Thanks, >> >> dwh >> >> _______________________________________________ >> Activewarehouse-discuss mailing list >> Activewarehouse-discuss at rubyforge.org >> http://rubyforge.org/mailman/listinfo/activewarehouse-discuss >> >> >> > > > > From denis at haskinferguson.net Wed Jan 14 18:34:03 2009 From: denis at haskinferguson.net (Denis Haskin) Date: Wed, 14 Jan 2009 18:34:03 -0500 Subject: [Activewarehouse-discuss] rails version? In-Reply-To: References: <496CF94B.2060803@haskinferguson.net> Message-ID: <496E766B.2030101@haskinferguson.net> Ok - apologies that I wasn't clear in my initial email which version of activewarehouse I was trying to use. But from my other email, you'll see that I'm trying to build+install the latest from git... without luck, so far. Thanks! dwh Anthony Eden wrote: > The latest in git should work with the latest 2.x of Rails. > > -A > > > From anthonyeden at gmail.com Wed Jan 14 18:51:01 2009 From: anthonyeden at gmail.com (Anthony Eden) Date: Wed, 14 Jan 2009 18:51:01 -0500 Subject: [Activewarehouse-discuss] strange difficulties.. 'no such file to load' In-Reply-To: <496E7612.5000502@haskinferguson.net> References: <496E503B.9000807@haskinferguson.net> <496E7612.5000502@haskinferguson.net> Message-ID: What does 'which gem' return? Is it possible that you have the two locations where gems are being installed on your system? I just ran the sudo rake reinstall locally and it worked fine (one I installed the 0.5.0 version of adapter-extensions). -A On Wed, Jan 14, 2009 at 6:32 PM, Denis Haskin wrote: > ~$ gem -v > 1.3.1 > > > Anthony Eden wrote: >> >> What version of RubyGems are you running? >> >> -A >> >> On Wed, Jan 14, 2009 at 3:51 PM, Denis Haskin >> wrote: >> >>> >>> (Apologies to Anthony, I already sent this to him on github) >>> >>> This may a general gem problem, not activewarehouse-etl, but? >>> >>> I cloned the project to my local machine, did a 'rake gem' and 'sudo rake >>> reinstall', and it seems to have installed fine, but when I try the >>> command >>> 'etl', I get: >>> >>> /usr/bin/etl:19:in `load': no such file to load?etl (LoadError) >>> from /usr/bin/etl:19 >>> >>> Now, this may well be something botched in my local gem install, but >>> nothing >>> else is broken. Any thoughts? (And Sarat, I may pick up your changes and >>> commit them to my fork on github... or do you already have it forked up >>> there?) >>> >>> Or is the 0.9.1 gem available somewhere? >>> >>> Thanks, >>> >>> dwh >>> >>> _______________________________________________ >>> Activewarehouse-discuss mailing list >>> Activewarehouse-discuss at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/activewarehouse-discuss >>> >>> >>> >> >> >> >> > -- GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++** http://anthony.mp From denis at haskinferguson.net Wed Jan 14 20:36:03 2009 From: denis at haskinferguson.net (Denis Haskin) Date: Wed, 14 Jan 2009 20:36:03 -0500 Subject: [Activewarehouse-discuss] strange difficulties.. 'no such file to load' In-Reply-To: References: <496E503B.9000807@haskinferguson.net> <496E7612.5000502@haskinferguson.net> Message-ID: <496E9303.40803@haskinferguson.net> ~$ which gem /usr/bin/gem But I think your suggestion about possible multiple gem locations might be valid. A couple of times I have accidentally done 'gem install' instead of 'sudo gem install', but I thought I had cleaned up and re-done it each time... I will investigate some more. Thanks, dwh Anthony Eden wrote: > What does 'which gem' return? Is it possible that you have the two > locations where gems are being installed on your system? > > I just ran the sudo rake reinstall locally and it worked fine (one I > installed the 0.5.0 version of adapter-extensions). > > -A > > From matthew.d.williams at gmail.com Wed Jan 14 21:30:40 2009 From: matthew.d.williams at gmail.com (Matthew Williams) Date: Wed, 14 Jan 2009 21:30:40 -0500 Subject: [Activewarehouse-discuss] strange difficulties.. 'no such file to load' In-Reply-To: <496E9303.40803@haskinferguson.net> References: <496E503B.9000807@haskinferguson.net> <496E7612.5000502@haskinferguson.net> <496E9303.40803@haskinferguson.net> Message-ID: <4c8cdcb30901141830v5c3e9eaaiefb9691d741742ea@mail.gmail.com> If you rename /usr/bin/gem to /usr/bin/gem.org (are you running OSX? Did you compile Ruby to be in /usr/local yourself?) then you should immediately fall back on your /usr/local/bin install. I've been bitten by that far too many times.... On Wed, Jan 14, 2009 at 8:36 PM, Denis Haskin wrote: > ~$ which gem > /usr/bin/gem > > But I think your suggestion about possible multiple gem locations might be > valid. A couple of times I have accidentally done 'gem install' instead of > 'sudo gem install', but I thought I had cleaned up and re-done it each > time... I will investigate some more. > > Thanks, > > dwh > > > Anthony Eden wrote: >> >> What does 'which gem' return? Is it possible that you have the two >> locations where gems are being installed on your system? >> >> I just ran the sudo rake reinstall locally and it worked fine (one I >> installed the 0.5.0 version of adapter-extensions). >> >> -A >> >> > > _______________________________________________ > Activewarehouse-discuss mailing list > Activewarehouse-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/activewarehouse-discuss > From kidpollo at gmail.com Wed Jan 14 21:55:02 2009 From: kidpollo at gmail.com (Paco Viramontes) Date: Wed, 14 Jan 2009 20:55:02 -0600 Subject: [Activewarehouse-discuss] date dimension constraints Message-ID: Hi all! I am finally getting a report with active warehouse working, the problem is that for my default view I get all the years from my date dimension and I would only want to show one or two years not all the dates for my date dimension, whar would be the best aproach to achieve this? PACo @report = ActiveWarehouse::Report::TableReport.new @report.title = "report" @report.cube_name = :cube @report.column_dimension_name = :date @report.column_hierarchy = :calendario @report.row_dimension_name = :place @report.row_hierarchy = :region @report.column_constraints = ["2008"] @view = @report.view(params, {:sortable_with_totals => true}) From denis at haskinferguson.net Thu Jan 15 00:16:28 2009 From: denis at haskinferguson.net (Denis Haskin) Date: Thu, 15 Jan 2009 00:16:28 -0500 Subject: [Activewarehouse-discuss] strange difficulties.. 'no such file to load' In-Reply-To: <4c8cdcb30901141830v5c3e9eaaiefb9691d741742ea@mail.gmail.com> References: <496E503B.9000807@haskinferguson.net> <496E7612.5000502@haskinferguson.net> <496E9303.40803@haskinferguson.net> <4c8cdcb30901141830v5c3e9eaaiefb9691d741742ea@mail.gmail.com> Message-ID: <496EC6AC.3000506@haskinferguson.net> Sorry, on ubuntu, not OSX. Did ruby + gem install the way we're supposed to on ubuntu--it's been fine. dwh Matthew Williams wrote: > If you rename /usr/bin/gem to /usr/bin/gem.org (are you running OSX? > Did you compile Ruby to be in /usr/local yourself?) then you should > immediately fall back on your /usr/local/bin install. > > I've been bitten by that far too many times.... > > > On Wed, Jan 14, 2009 at 8:36 PM, Denis Haskin wrote: > >> ~$ which gem >> /usr/bin/gem >> >> But I think your suggestion about possible multiple gem locations might be >> valid. A couple of times I have accidentally done 'gem install' instead of >> 'sudo gem install', but I thought I had cleaned up and re-done it each >> time... I will investigate some more. >> >> Thanks, >> >> dwh >> >> >> Anthony Eden wrote: >> >>> What does 'which gem' return? Is it possible that you have the two >>> locations where gems are being installed on your system? >>> >>> I just ran the sudo rake reinstall locally and it worked fine (one I >>> installed the 0.5.0 version of adapter-extensions). >>> >>> -A >>> >>> >>> >> _______________________________________________ >> Activewarehouse-discuss mailing list >> Activewarehouse-discuss at rubyforge.org >> http://rubyforge.org/mailman/listinfo/activewarehouse-discuss >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From kidpollo at gmail.com Thu Jan 15 02:31:36 2009 From: kidpollo at gmail.com (Paco Viramontes) Date: Thu, 15 Jan 2009 01:31:36 -0600 Subject: [Activewarehouse-discuss] Sort Table report Message-ID: Hi again I cannot figure out sort to sort by default my facts table i can sort with the YUI table but by default the view is not sorted, I've tried even hardcoding :S order_by into the query, still comes out unordered @view = @report.view(params, {:sortable_with_totals => true}) any ideas, please, anyone? PAco From anthonyeden at gmail.com Thu Jan 15 07:11:04 2009 From: anthonyeden at gmail.com (Anthony Eden) Date: Thu, 15 Jan 2009 07:11:04 -0500 Subject: [Activewarehouse-discuss] AdapterExtensions-0.5 and ActiveWarehouse-ETL 0.9.1 Released Message-ID: Just an FYI, I pushed out releases for Adapter Extensions (0.5) and ActiveWarehouse-ETL (0.9.1) last night. I also updated the web site to replace references to the old SVN repo with references to the Github repo. I'm going to try to dedicate a little time in the next couple weeks to write a new tutorial. No promises but I'll do my best to get something out there. -Anthony -- GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++** http://anthony.mp From thibaut.barrere at gmail.com Thu Jan 15 08:03:00 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Thu, 15 Jan 2009 14:03:00 +0100 Subject: [Activewarehouse-discuss] AdapterExtensions-0.5 and ActiveWarehouse-ETL 0.9.1 Released In-Reply-To: References: Message-ID: <4a68b8cf0901150503m3f610ebat4601ca84b1f73a10@mail.gmail.com> Hi Anthony, thanks for pushing out the new release, that's great news. About tutorials: now that we're on github, maybe we could push all the documentation as wiki pages there ? I'm not sure how this works currently, but it could make it easier for us to contribute small tutorials or faqs, thanks to github. What do you think ? Also, I remember we talked about moving to google groups. I'd vote +1 on that; what's your current opinion ? cheers and thanks! -- Thibaut On Thu, Jan 15, 2009 at 1:11 PM, Anthony Eden wrote: > Just an FYI, I pushed out releases for Adapter Extensions (0.5) and > ActiveWarehouse-ETL (0.9.1) last night. I also updated the web site to > replace references to the old SVN repo with references to the Github > repo. > > I'm going to try to dedicate a little time in the next couple weeks to > write a new tutorial. No promises but I'll do my best to get something > out there. > > -Anthony > > -- > GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O > M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++** > > http://anthony.mp > _______________________________________________ > Activewarehouse-discuss mailing list > Activewarehouse-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/activewarehouse-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmaine at blurb.com Thu Jan 15 13:35:39 2009 From: jmaine at blurb.com (Jacob Maine) Date: Thu, 15 Jan 2009 10:35:39 -0800 (PST) Subject: [Activewarehouse-discuss] date dimension constraints In-Reply-To: Message-ID: <11503596.107731232044539654.JavaMail.root@kilgore.blurb.com> I believe you can add conditions with: @report.conditions = "sql conditions here" ----- "Paco Viramontes" wrote: > Hi all! > > I am finally getting a report with active warehouse working, the > problem is that for my default view I get all the years from my date > > dimension and I would only want to show one or two years not all the > > dates for my date dimension, whar would be the best aproach to achieve > > this? > > PACo > > @report = ActiveWarehouse::Report::TableReport.new > @report.title = "report" > @report.cube_name = :cube > @report.column_dimension_name = :date > @report.column_hierarchy = :calendario > @report.row_dimension_name = :place > @report.row_hierarchy = :region > > @report.column_constraints = ["2008"] > > @view = @report.view(params, {:sortable_with_totals => true}) > _______________________________________________ > Activewarehouse-discuss mailing list > Activewarehouse-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/activewarehouse-discuss From jmaine at blurb.com Thu Jan 15 13:41:55 2009 From: jmaine at blurb.com (Jacob Maine) Date: Thu, 15 Jan 2009 10:41:55 -0800 (PST) Subject: [Activewarehouse-discuss] Sort Table report In-Reply-To: <276772.107901232044818379.JavaMail.root@kilgore.blurb.com> Message-ID: <4500974.107921232044915664.JavaMail.root@kilgore.blurb.com> You can set an order on a dimension (see below.) That order should apply to reports that pivot on the dimension. I'm not sure what the rules are for combining sort orders from two dimensions, or if there's a way to set multiple orders for different levels of a hierarchy. class DateDimension < ActiveWarehouse::Dimension set_order :calendar_month_number end ----- "Paco Viramontes" wrote: > Hi again > > I cannot figure out sort to sort by default my facts table i can sort > > with the YUI table but by default the view is not sorted, I've tried > > even hardcoding :S order_by into the query, still comes out unordered > > @view = @report.view(params, {:sortable_with_totals => true}) > > any ideas, please, anyone? > > > PAco > _______________________________________________ > Activewarehouse-discuss mailing list > Activewarehouse-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/activewarehouse-discuss From mghaught at gmail.com Thu Jan 15 15:11:07 2009 From: mghaught at gmail.com (Marty Haught) Date: Thu, 15 Jan 2009 13:11:07 -0700 Subject: [Activewarehouse-discuss] date dimension constraints In-Reply-To: <11503596.107731232044539654.JavaMail.root@kilgore.blurb.com> References: <11503596.107731232044539654.JavaMail.root@kilgore.blurb.com> Message-ID: <57f29e620901151211u33128357q5d39ad1202b7a30b@mail.gmail.com> On Thu, Jan 15, 2009 at 11:35 AM, Jacob Maine wrote: > I believe you can add conditions with: > > @report.conditions = "sql conditions here" Yeah, we did something similar. We made a date range that we wanted to constrain the report by. We passed in a huge hash of options but that's the same as setting conditions directly. :conditions => [ "my_facts.my_date_id IN (select id from my_date_dimension where sql_date_stamp #{(start_date.to_date .. end_date.to_date).to_s(:db)})" Cheers, Marty From kidpollo at gmail.com Thu Jan 15 15:54:53 2009 From: kidpollo at gmail.com (Paco Viramontes) Date: Thu, 15 Jan 2009 14:54:53 -0600 Subject: [Activewarehouse-discuss] date dimension constraints In-Reply-To: <57f29e620901151211u33128357q5d39ad1202b7a30b@mail.gmail.com> References: <11503596.107731232044539654.JavaMail.root@kilgore.blurb.com> <57f29e620901151211u33128357q5d39ad1202b7a30b@mail.gmail.com> Message-ID: You can specify dimmension order directly on the dimension model I am talking about order ing according to fact aggregates Paco Sent from my iPhone On Jan 15, 2009, at 2:11 PM, "Marty Haught" wrote: > On Thu, Jan 15, 2009 at 11:35 AM, Jacob Maine > wrote: >> I believe you can add conditions with: >> >> @report.conditions = "sql conditions here" > > Yeah, we did something similar. We made a date range that we wanted > to constrain the report by. We passed in a huge hash of options but > that's the same as setting conditions directly. > > :conditions => [ > "my_facts.my_date_id IN (select id from my_date_dimension where > sql_date_stamp #{(start_date.to_date .. end_date.to_date).to_s(:db)})" > > Cheers, > Marty From jmaine at blurb.com Thu Jan 15 17:04:22 2009 From: jmaine at blurb.com (Jacob Maine) Date: Thu, 15 Jan 2009 14:04:22 -0800 (PST) Subject: [Activewarehouse-discuss] date dimension constraints In-Reply-To: <14994340.114321232057006089.JavaMail.root@kilgore.blurb.com> Message-ID: <9931653.114341232057062835.JavaMail.root@kilgore.blurb.com> Ah, I misunderstood. Sorry, don't know how to help. ----- "Paco Viramontes" wrote: > You can specify dimmension order directly on the dimension model I am > > talking about order ing according to fact aggregates > > Paco > > Sent from my iPhone > > On Jan 15, 2009, at 2:11 PM, "Marty Haught" > wrote: > > > On Thu, Jan 15, 2009 at 11:35 AM, Jacob Maine > > wrote: > >> I believe you can add conditions with: > >> > >> @report.conditions = "sql conditions here" > > > > Yeah, we did something similar. We made a date range that we > wanted > > to constrain the report by. We passed in a huge hash of options > but > > that's the same as setting conditions directly. > > > > :conditions => [ > > "my_facts.my_date_id IN (select id from my_date_dimension where > > sql_date_stamp #{(start_date.to_date .. > end_date.to_date).to_s(:db)})" > > > > Cheers, > > Marty > _______________________________________________ > Activewarehouse-discuss mailing list > Activewarehouse-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/activewarehouse-discuss From denis at haskinferguson.net Fri Jan 16 14:27:08 2009 From: denis at haskinferguson.net (Denis Haskin) Date: Fri, 16 Jan 2009 14:27:08 -0500 Subject: [Activewarehouse-discuss] AdapterExtensions-0.5 and ActiveWarehouse-ETL 0.9.1 Released In-Reply-To: References: Message-ID: <4970DF8C.8080405@haskinferguson.net> FYI - I think ActiveWarehouse-ETL (0.9.1) depends on Adapter Extensions (0.5), but the gemspec for aw-etl 0.9.1 only specifies >0.1.0 for Adapter Extensions. At least, when I had 0.4 installed I was getting errors (see below) which went away once I upgraded to 0.5 (the error actually looks like it's just an adapter_extensions error). Thanks, dwh The error: /usr/lib/ruby/gems/1.8/gems/adapter_extensions-0.4.0/lib/adapter_extensions.rb:9:in `alias_method': undefined method `require_gem' for module `Kernel' (NameError) Anthony Eden wrote: > Just an FYI, I pushed out releases for Adapter Extensions (0.5) and > ActiveWarehouse-ETL (0.9.1) last night. I also updated the web site to > replace references to the old SVN repo with references to the Github > repo. > > I'm going to try to dedicate a little time in the next couple weeks to > write a new tutorial. No promises but I'll do my best to get something > out there. > > -Anthony > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kookster at gmail.com Fri Jan 16 19:19:43 2009 From: kookster at gmail.com (Andrew Kuklewicz) Date: Fri, 16 Jan 2009 19:19:43 -0500 Subject: [Activewarehouse-discuss] looking for some advice: aggregations, remote processing, latest docs Message-ID: <19ba6d7f0901161619k5358d07cl6b7707968347d624@mail.gmail.com> Hello, I'm just getting started with ActiveWarehouse (AW), but I had a couple of questions as the docs are a bit sparse. I have built warehouses/marts before (though I must admit it was awhile ago), but not using AW. I am planning to use it for www.prx.org. I am looking to craft a fact table(s) from exports of an AR table where we log user activity (a user listened to an audio file, a user published a new piece, etc.), and then I want to drive a flash chart with rolled up values of these for standard time dimension - e.g. count of listens by day, week, month; count of profile views by day, week, month, etc. I figure I can use the etl tool to extract from the AR model using our RR app prod db as an ODS, especially with the new records only option (though I may break up the initial load a bit as it is about 3 million records). I'll also keep the export to file first default option, that seems like an awfully good way to do it. Assuming I get this all in a nice star schema, I don't want to only rely on rolap for the summary - I need speed/scaling for this. I had thought (before looking at AW) to create a set of rollup tables, similar to what I see was done in the mmmultiworks gem_stats project (http://mmmultiworks.rubyforge.org/svn/gem_stats/trunk/lib/etl/processor/aggregate_processor.rb). I could implement something like that - where all the summary counts are saved for each of the 3 levels I care about (roll up by day, week, and month - so perhaps 3 three summary tables). I would also be fine with another cube aggregation / rollup impl if I could hear from someone a good experience with it, and esp if it was ready to use so I didn't have to do something custom here. Any advice on this? My other question is if anyone has split this across servers - I am playing with the idea of offloading the processing for this to another box so I don't hurt performance on the prod server - I guess I could just access the dbs remotely, and take a hit on the remote communication - any other good practices with this? Any other good current resources to use? I am happy to read the code, but example apps, or more current example blog posts or tutorials would be helpful. (And a quick hello to Thibaut Barr?re if you are reading this list still, would love to hear how AW has been working for ya.) - Andrew Kuklewicz From thibaut.barrere at gmail.com Mon Jan 19 04:14:25 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Mon, 19 Jan 2009 10:14:25 +0100 Subject: [Activewarehouse-discuss] looking for some advice: aggregations, remote processing, latest docs In-Reply-To: <19ba6d7f0901161619k5358d07cl6b7707968347d624@mail.gmail.com> References: <19ba6d7f0901161619k5358d07cl6b7707968347d624@mail.gmail.com> Message-ID: <4a68b8cf0901190114k4b720199r9df2f5615eb79f98@mail.gmail.com> Hi Andrew, nice to see you here :) I have no experience with sharing loads across servers as far as AW/AW-ETL is concerned (although I thought about splitting stuff a-la map/reduce on the ETL part), and didn't have to rollup stuff either, so I won't be of much help on that point. Maybe someone else will be able to provide some insights. A question that popped after reading your post is: are you concerned about performance on the data building stage, or on the reporting stage (or both) ? My own insight (from what I've learned at least) would be to try prototyping on a single machine and avoid optimization until you can't delay it anymore. I've been positively surprised by how fast things can go as long as you only import what you really need, with the proper indices. In my cases, I actually dump the whole production database each night (hundreds of MB), and it is then copied to a dedicated machine that does the ETL part, add dimensions (including home-cooked date dimension with what's relevant, Q1, Q2, day of week, whatever), create views. I thought I would switch to incremental stuff but the need never really came up. I guess in your case, I would dump the whole AR table, add a date dimension with what's relevant, see how it goes, then put this stuff on a separate machine nightly or periodically depending on the freshness you need. A few things than could help: - I've been setting up a continuous integration server with the latest data and it helped a lot to make development easier - you'll want to have a look at the "screen" feature, basically tests that you can run against the data (mine are launched once the data is loaded in the database) - http://activewarehouse.rubyforge.org/docs/activewarehouse-etl.html => etl manual Feel free to ask questions as they go here! cheers -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: