Does the value of binary variable affects the performance?
I am having a registration form in my mobile app in which i have many dropdowns, lists which are from API. and i have on change events for dropdown to change another dropdown(ie: City dropdown depends on value in region dropdown which depends on country dropdown value)
And i am getting binary data like profile photo and many profs (20 binary variables)
Before giving the binary data the API works fast and fine (within 400ms) but after uploading the files the API is getting slow and Connection timeout error occurs and data is not loading(takes more then 10s and connection timed out error occurs).
Is there any solution or alternatives to this issue
Hi Srinivas,
not an easy response, but loading photos may slow down the process, if possible I would try compressing them before uploading. On the API side how is the code? From what I understand the binary data wouldn't be the problem.
Good luck and please keep us posted, thanks and best regards.
Hello @Srinivas Prasad ,
Yes, binary data can indeed affect the performance of a system.
Could you have separate APIs?
One for data without binary output. And one for each binary you need.
Regards,
Pedro.
Since you're looking for an alternative, I recommend storing the binary data (accessible via URLs) in cloud storage solutions like Azure Blobs or Amazon S3. This way, the API can simply return the URLs to these files. This approach will speed up your page load times, as profile images will load in parallel.
Hello @Srinivas Prasad, how are you ?
I hope that you're fine.
Recently I have been the same problem as you. The way that I find a solution is delete the binary from local variable who has the binary at the end of the after fatch from the Data Action who uploads the binary. Cause if you stay with the binary in screen, it will load too, making your load more heavy.
Hi @Srinivas Prasad
Giving binary data into API and getting connection timeout error may occurs due to The size of file you are uploading is too large as some APIs have limits on the size of file that can be uploaded. if you are trying to upload a larger file then you will get connection timeout error.
so please try by reducing the file size by compressing .
Thanks & Regards
Jitendra