Search Queries across entire Retool Platform

Hi! This may or may not be a new feature request.

There are one or two very pesky queries being run on Retool that are taking up a significant amount of compute. The issue is, I have no idea where they are being used. Is there a way to search up portions of a query and view what apps they are being used in so I can work to solve the issue around CPU utilization? I do see a search tab within a Retool App but from my understanding this only pertains to all code directly within the app itself :slight_smile: Thanks!

Hello @Anish_Srinivasan!

Interesting issue, if the query is being shared from the query library, then you can view the apps it is being used in via the Query Library page, as seen on the bottom right.

If the query is not being shared across apps in query library, then it should be limited to a single app.

The search bar at the top can be used to search for resources, where if you have any guesses on which resource the query is using you can move towards finding out which app has the resource and therefore the corresponding queries.

This search bar can also save in app names, as in the picture below my 'empty testing' app is the scope of the search, where if you add in more apps or remove the app name it should broaden the app. It also has a 'Code' category in the dropdown which will populate with queries and index off their name as well as the data within the query.

Hope this helps!