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 <
[email protected]> 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?
>
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to