on 02-17-2016 12:15 PM
Hello Team,
I am using SPS 10 version of ODATA service for providing the data to other applications.
As request of end user application, i am providing this data in JSON format.
Sample link : https://<hostname>/<path>/<odata file name>.xsodata/InputParams(<input parameters)/Results?$format=json
Sometime, the data will be huge. So i need to compress the data and send to end user.
How to compress the data while sending the data to other applications by using ODATA service ?
Thanks
Saravanan TN
OData is a typical HTTP consumption case for web applications. There is no meaning to compress the data and send it. If you are bothered about the volume of data, page the response. From your URL , you are using xsodata service, where paging is by default implemented. You do not even need to code something .
JSON FIle - there is no json file involved in the context of odata. the http responsebody you are recieving is a plain text, which is in json notation and parsable with json parser
as a bottom line, paging is your answer here.
adding to it - hana is known for its capability to handle mass load of data processing. So , give it the satisfaction to process the data, but to avoid network load , pass the paging parameter. XS Engine will filter the data accordingly and get as response,
Message was edited by: Sreehari V Pillai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sarvanan,
As far as i know there is no such mechanism to compress the standard GW response.
Since its a JSON response its already very light when compared to XML.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.