+ 1
how to get mysql data through json in flask ?
I'm beginner and need to learn how to add mysql all data to json at once need to fetch data through json in flask
4 odpowiedzi
+ 4
How about an example from word-weide web ie:
https://code.tutsplus.com/creating-a-web-app-from-scratch-using-JUMP_LINK__&&__python__&&__JUMP_LINK-flask-and-mysql--cms-22972t
+ 2
Tq i'll go through it
+ 1
What do you mean by "large data"? The http response size has no hard limit, except for the memory in the client machine (here we can typically talk about gigabytes).
If your data set is in the gigabyte range, you should probably compress it instead of using json, and send it in chunks. Sending large amount of raw text through the internet is very wasteful and potentially expensive (if you pay egress fee to the cloud provider where the service is located). And also most likely Python is not the best choice when performance and memory limitations can be a factor.
Since you said you are a beginner, I assume this was only a theoretical question, without you actually writing the code and receiving a size-related error. If my assumption is wrong, then you could also elaborate on the specific error you are getting.
https://www.quora.com/What-is-the-practical-limit-on-the-size-of-a-JSON-message-for-an-internet-application
0
Tq but if i have a large data means then what i have to do