DEV Community

Burak Kucukparmaksiz
Burak Kucukparmaksiz

Posted on

3

Backend data is really slow returned.

Hi folks,
I am looking for solution to quick returns backend data. I am calling remote.reqiure('....node file path') in react component . This data returns take too much time. How can i handle this issue? Do you have any idea?
Thanks,

Top comments (7)

Collapse
 
whatthehanan profile image
Hanan Hamza

what's the file size?
If it's a large file I would recommend using a CDN

Collapse
 
burakkp profile image
Burak Kucukparmaksiz

Hi Hanan,

My backend file size 1.3MB this file has a just calculation method. I get that method and apply to my data. I checked Performance screen on Dev-Tools, It takes time this backend connection part. I am using like this remote.require('./backend/backend-native.node').

Collapse
 
whatthehanan profile image
Hanan Hamza

I think that's just electron then. look at this thread
github.com/electron/electron/issue...

Thread Thread
 
burakkp profile image
Burak Kucukparmaksiz

Thanks Hanan,

I will look this.

Collapse
 
jamesrweb profile image
James Robb

Can you share your code?

Collapse
 
burakkp profile image
Burak Kucukparmaksiz

Hi James,

I checked Performance screen on Dev-Tools, It takes time this backend connection part. I am using like this remote.require('./backend/backend-native.node'). This part almost takes extra 20ms.

Collapse
 
jamesrweb profile image
James Robb

I believe you but without seeing the code, I can't help you debug.

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay