on 09-17-2014 4:41 AM
Hi all oData and Gateway experts,
I'm very new in this topic and would like to ask some help from you guys.
Just wondering when getting response from Gateway in JSON format, is it possible to remove __metadata block?
I'm asking because if I going to return 100 records and they are all have __metadata block, it will slow down the communication.
Regards,
Pan
Hi Attasart,
Be noticed that we are developing OData services. As per the standards(yes, we have to follow the standards), metadata block is a mandatory component of the return Odata payload. You can not remove that part. And , Odata is not intended for transferring heavy data from server to the browser. If you come across such a situation , you need to follow lazy loading (use $top and $skip to control the data flow).
Sreehari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks guys. It's all clear now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Attasart,
It is the standard format in which your response if encapsulated and we do not have any control over it. Hence we cannot remove that in GW level.
There are some standard ways like Skip-Top, Skip-Token , Delta-Query which u can think of when there are scenarios involving transfer of huge volume of data.
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 |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.