+ 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

6th Jan 2024, 5:13 AM
Jayashree M
4 Respostas
+ 2
Tq i'll go through it
8th Jan 2024, 11:21 AM
Jayashree M
+ 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
6th Jan 2024, 9:44 AM
Tibor Santa
Tibor Santa - avatar
0
Tq but if i have a large data means then what i have to do
6th Jan 2024, 9:26 AM
Jayashree M