I have a few apps that I’ve built years ago and they haven’t had any issues until now. Over the past few days, I’ve noticed there is a considerable lag on all of the pages (and I haven’t added anything new to them in months).
It’s not just queries timing out but taking 10+ seconds for an app page to load, not staying loaded when I switch between tabs, the cursor taking 5+ seconds to change icon when I hover over a button etc. It’s not just me but also end users who are experiencing this issue.
Has anyone else noticed this or is it just something in my apps?
Hey @Nick01, Nick, thanks for reporting this! Are you on Retool Cloud or self-hosted? If self-hosted, what version are you running?
In the meantime, these two guides cover the most common causes, start with checking your query count and payload sizes in the Query Timeline (Debug toolbar at the bottom of the app), since those are usually the main culprits for the kind of slowness you're describing:
Okay, looks like it doing a lot better today. Turning off efficiency mode on my browser seemed to help a lot.
One additional question. I’ve noticed on a few apps, on page load, it auto-scrolls to the middle of the page. I don’t remember setting that for any components. Is there a way to fix this?
Hey Nick @Nick01 good to hear things are a lot better today! Quick debug tip to figure out why the page scrolls to the middle, you can disable components one by one until the scroll stops, that's your culprit. Once you find which component is causing it, let us know and we can dig into the fix.
A few things that could potentially trigger this:
Tabs Component or Steps Component with a non-first default selection: Retool scrolls the selected tab/step into view on load
A component toggling from hidden to visible on load (e.g. bound to table.selectedRow): Retool scrolls it into view as it mounts