On 22 May 2012 17:26, Morten Olav Hansen <morte...@gmail.com> wrote:
>> No.  All that is being streamed is a gzipped csv file of aggregated
>> datavalues or aggregated indicator values from the datamart.  I should
>> check do we have any dataMart theme in our api .. I don't think we do
>> (yet).
>
> Actually, we do have AggregatedValueController.. which I guess is what
> you want. I don't think anyone is using it at moment, but I'm not
> sure.. so you can probably hack and slash that controller into what
> you want..
>
> Lars, are we using this for anything? (is this part of the grid
> renderer etc?) I remember making it.. but never used it..

That is a good question.  Please shout up if this is currently in use.
 Either way I can leave the single method there if people have already
built stuff with it.  If not, then I might take liberty to modify it
...

>
>> So I guess if we were to think generally, we should think of different
>> useful api methods for accessing (slices of) our datamart.  Currently
>> I am happy to think quite primitively to just move the current actions
>> across.  But with a placeholder for more refined ideas we can
>> introduce later.  So I am thinking of something like a
>> DataMartValueController for want of a better name.  And getting the
>> actual data in exactly the same way I currently do - using a fairly
>> finely tuned jdbc resultset iterator as these datamart dumps can get
>> quite large.
>
> Yeah, if you were to go with the approach used in the controller.. it
> would probably be too slow (and not gzipped! atm..). Being able to get
> slices of aggregated data as CVS sounds useful.. maybe json/xml also?

Yes well taking slices of the datamart is essential - currently that
is what mydatamart is doing - carving off chunks of data for a
particular orgunit subtree for a particular set of periods.

Strange though it might seem coming from me, I've not been tempted to
do either an xml or json rendition.  For this sort of data, compressed
csv seems most appropriate.  Starting to think like one of those
R-struck statisticians :-)

>
> --
> Morten
>
>> Bob
>>
>>>
>>> --
>>> Morten
>>>
>>>> Cheers
>>>> Bob

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to