← Back to team overview

dhis2-devs team mailing list archive

Re: mydatamart and api

 

> 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..

> 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?

--
Morten

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


Follow ups

References