DEV Community

Burak Kucukparmaksiz
Burak Kucukparmaksiz

Posted on

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,

Oldest comments (7)

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.

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.