É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?
23 Replies
shikharTS
shikharTS3mo ago
What http config are you using? We have seen slowness issues with http1/1.1 We recommend using http2.. cc @yuichirio_ha
Érico
ÉricoOP3mo ago
we're using http1 indeed but could that be the main slowness reason anyway?
shikharTS
shikharTS3mo ago
yes that could be the main reason. Can you update to http2 and try again and see if the slowness goes away?
Érico
ÉricoOP3mo 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
shikharTS3mo 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
ÉricoOP3mo 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.kapoor3mo 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
ÉricoOP3mo 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
ÉricoOP3mo ago
@shikharTS @utsav.kapoor the assets are loaded using http2 (ours and yours)
No description
Érico
ÉricoOP3mo ago
I can send you the HAR file if you want
utsav.kapoor
utsav.kapoor3mo 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
ÉricoOP3mo 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.kapoor3mo ago
Ohh wow . Let me take a look at the HAR and break this down to see how we can improve
Érico
ÉricoOP3mo ago
Hello @utsav.kapoor , do you have any news about the HAR I've sent?
utsav.kapoor
utsav.kapoor3mo ago
Hey @Érico . Ill have an update for you tomorrow. Sorry, we had a holiday here
Érico
ÉricoOP2mo ago
no problem! hello @utsav.kapoor , do you have an update?
utsav.kapoor
utsav.kapoor2mo 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
ÉricoOP2mo 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.kapoor2mo ago
Let me check the HAR File. Ill probably have the call scheduled this week. Adding @shikharTS so he is aware of this conversation
Érico
ÉricoOP2mo ago
hello @utsav.kapoor @shikharTS , do you have any updates? should I open an issue ticket for that?
shikharTS
shikharTS2mo ago
yes @Érico can you create a support case for this, will help in tracking this properly
Aditya
Aditya2mo ago
Hey @Érico did you tried using pre-render while embedding Liveboard? It will help you in loading your liveboard shell much earlier and can help you in getting better performance. Documentation for the same - https://developers.thoughtspot.com/docs/prerender#_prerender
Prerender components
Prerender components to optimize user experience of your embedding application

Did you find this page helpful?