dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #32621
Re: OrgUnit API
Do you need all fields? you could probably easily shave of a quite a few
bytes by only asking for the fields you need. We only support compression
on the /api/metadata endpoint (zip, gzip) and I would rather see
compression implemented in the caching server / proxy (nginx, lighty etc).
You can also enable gzip compression in tomcat.
Are you sure its the download that takes time, and not the processing on
the server side?
--
Morten
On Fri, Sep 5, 2014 at 10:16 AM, Mahendra Kariya <
mahendra.kariya@xxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> We are making a call to /api/organisationUnits.json?fields=[:all] which is
> taking a long time because the payload is close to 800KB. Is there any way
> we can reduce the payload size (maybe by compressing) so that we can get a
> faster response?
>