Érico - Hello guys!We're embedding our first T...
Hello guys!
We're embedding our first ThoughtSpot liveboard in our webapp, but the slowness to start rendering is very noticeble, even if we compare to the liveboard inside ThoughtSpot website. We already tried to use the prefetch technique but we didn't see any results. Have you guys already face that?
19 Replies
What http config are you using? We have seen slowness issues with http1/1.1 We recommend using http2..
cc @yuichirio_ha
we're using http1 indeed
but could that be the main slowness reason anyway?
yes that could be the main reason. Can you update to http2 and try again and see if the slowness goes away?
I asked because the slowness doesn't happen on our side. It's just the normal embed liveboard that is requesting a lot of different resources and it appears to be sequentially handled sometimes.
We have seen slowness with http1, we strongly recommend using http2 even here : https://developers.thoughtspot.com/docs/best-practices. The ThoughtSpot website also uses requests the same resources though. cc @utsav.kapoor
I'll perform some tests changing our application server to HTTP2. Until then, just for curiosity I changed the embed mode (using TS SDK) to a single iframe and the time to render the components has decreased about 2x
Which embed mode did you change to ? Im now very curious about your setup
But yes, change to HTTP 2. Youll get best results with it. You will limit parallelization in HTTP 1.1 and hence the application will appear to be making sequentially calls.
I just test using a plan iframe, instead of embedding the TS Liveboard component in a div (BTW I'm using plain HTML/JS)
@shikharTS @utsav.kapoor the assets are loaded using http2 (ours and yours)

I can send you the HAR file if you want
Can you DM me the full HAR of loading TS and liveboard and I can see what is happening. What load time are you thinking for the complete load ?
ofc, HAR file sent via DM
right now I basically have no data to load, so the slowness isn't on the data loading side.. on the liveboard I have 4 KPIs and 2 charts (as I said, the tables are empty so I'm testing just the components rendering)
the time right now is something about 17 seconds to load the liveboard with the empty charts on it
Ohh wow . Let me take a look at the HAR and break this down to see how we can improve
Hello @utsav.kapoor , do you have any news about the HAR I've sent?
Hey @Érico . Ill have an update for you tomorrow. Sorry, we had a holiday here
no problem!
hello @utsav.kapoor , do you have an update?
Yes. I forgot to update you on Friday. I am seeing slow API calls in the hAR file that you shared. API calls that generally take 100-200 ms are taking upwards of a second. Can you verify the timing for theser API calls by directly opening your TS Instance. Let me know the timing there and based on that we can have a call
accessing directly in ThoughtSpot platform it seems to be faster, while accessing in our embed app it takes a while to start loading the components
I sent the new HAR file to you (by accessing TS platform directly)
Let me check the HAR File. Ill probably have the call scheduled this week.
Adding @shikharTS so he is aware of this conversation