É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
shikharTS
shikharTS3w ago
What http config are you using? We have seen slowness issues with http1/1.1 We recommend using http2.. cc @yuichirio_ha
Érico
ÉricoOP3w ago
we're using http1 indeed but could that be the main slowness reason anyway?
shikharTS
shikharTS3w ago
yes that could be the main reason. Can you update to http2 and try again and see if the slowness goes away?
Érico
ÉricoOP3w ago
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.
shikharTS
shikharTS3w ago
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
Érico
ÉricoOP3w ago
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
utsav.kapoor
utsav.kapoor3w ago
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.
Érico
ÉricoOP3w ago
I just test using a plan iframe, instead of embedding the TS Liveboard component in a div (BTW I'm using plain HTML/JS)
Érico
ÉricoOP3w ago
@shikharTS @utsav.kapoor the assets are loaded using http2 (ours and yours)
No description
Érico
ÉricoOP3w ago
I can send you the HAR file if you want
utsav.kapoor
utsav.kapoor3w ago
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 ?
Érico
ÉricoOP3w ago
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
utsav.kapoor
utsav.kapoor3w ago
Ohh wow . Let me take a look at the HAR and break this down to see how we can improve
Érico
ÉricoOP2w ago
Hello @utsav.kapoor , do you have any news about the HAR I've sent?
utsav.kapoor
utsav.kapoor2w ago
Hey @Érico . Ill have an update for you tomorrow. Sorry, we had a holiday here
Érico
ÉricoOP2w ago
no problem! hello @utsav.kapoor , do you have an update?
utsav.kapoor
utsav.kapoor7d ago
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
Érico
ÉricoOP7d ago
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)
utsav.kapoor
utsav.kapoor6d ago
Let me check the HAR File. Ill probably have the call scheduled this week. Adding @shikharTS so he is aware of this conversation

Did you find this page helpful?