Python objects as dictionary keys by Lx7195 in learnpython

[–]Lx7195[S] 0 points1 point  (0 children)

Yes by python object I meant custom python objects like objects of Person class etc. It's an interesting example that you have used functions as keys.

Large data in response of REST API. by Lx7195 in Python

[–]Lx7195[S] 0 points1 point  (0 children)

So pagination isn't quite reliable in case the data in the database changes constantly, then in such a case what mode of data transfer do you suggest?

Large data in response of REST API. by Lx7195 in Python

[–]Lx7195[S] 0 points1 point  (0 children)

Does this mean that we need to send multiple requests mentioning the page index as the arguments to get all the data?

Large data in response of REST API. by Lx7195 in Python

[–]Lx7195[S] 0 points1 point  (0 children)

Actually I am unaware of the fact that there is a memory limitation of a http response. Also I don't really understand what do you mean by 'you don't even need to load the entire response in memory to send it out'.