tinkering with the react-apollo-instagram app, it ...
# prisma-whats-new
m
tinkering with the react-apollo-instagram app, it appears to run really poorly, I get the "Loading from ()" on every click for 1-2 seconds each, even after I've visited all pages. That doesn't seem right?
n
@mike.johnson hm, did you look into the network tab? what's taking most of the time?
m
n
@mike.johnson where are you located?
can you send me one of those requests as cURL in a PM? 🙂
m
Seattle
It's literally the react-apollo demo completely unaltered
n
A cURL would still be helpful to see if your location is the main factor at play here, or something else might be the problem. All projects are currently hosted in Europe (Ireland). We're running a closed beta for the regions US (Oregon) and Asia (Tokyo) already. This will probably increase your performance significantly 🙂
m
I'm not sure how to.
n
Right click the request in the network tab, choose copy, choose copy as cURL
m
curl 'http://localhost:3000/post/favicon.ico' -H 'Pragma: no-cache' -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8,cy;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36' -H 'Accept: image/webp,image/*,*/*;q=0.8' -H 'Referer: http://localhost:3000/post/cj40rypgxvuim017243tc2f6i' -H 'Cookie: __distillery=2f3b76b_ec49eb4a-f242-4ffc-aa1b-001d8fa695d9-cf5da2137-c4f2da8e6f77-d3c0; muxData=mux_viewer_id=93029d85-857b-4064-b844-671e9abd27cb&msn=0.2594306379266622&sid=e6b53f2a-60b2-48ca-ae5e-8712a5239654&sst=1496948066954&sex=1496949566954' -H 'Connection: keep-alive' -H 'Cache-Control: no-cache' --compressed
n
that's not the one 🙂
I just queried your API and it takes 125ms on average
m
curl 'https://api.graph.cool/simple/v1/cj3uanwsm7vw00139gv3nqzmc' -X OPTIONS -H 'Pragma: no-cache' -H 'Access-Control-Request-Method: POST' -H 'Origin: http://localhost:3000' -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8,cy;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'Referer: http://localhost:3000/' -H 'Connection: keep-alive' -H 'Access-Control-Request-Headers: content-type' --compressed
it's taking 1200 ms for me
n
While this is a higher overhead than expected, I believe that your location is the main factor for this. We will soon release the above mentioned regions to all projects, so you will be able to choose the US/Oregon region for your projects.
m
this basically kills graph.cool for me, I have production app running (old rails app) i'd like to convert/requild in react and graphql.
all of my customers are also located in Seattle area