"Find in files" searches database objects from removed data sources

Answered

When I use "Find in files" and search for for example "CREATE" I get a lot of results from a previous connected data sources' stored procedures which contains the term "CREATE OR ALTER". How come it tries to search the files that no longer are in use? And how do I clear this cache (or whatever is the issue)?

1
4 comments
Avatar
Yuriy Vinogradov

yes it is known issue, we keep all data source data in place just to have an option to revert data source deletion. And this data is used by code completion.

Here is related feature request, I guess there should be an option like 'Do you want to permanently delete data source and all related data'.

0

Oh I see. Is there some way for me to manually delete this data? I can't find it locally so I assume it's saved in disk in some proprietary format. Because as it is right now I cannot use the "Find in files" functionality since there just too many search hits.

 

0
Avatar
Yuriy Vinogradov

sure, you can find it in your_project_folder/.idea/dataSources. and in .idea folder there is 'dataSources.xml' file where you can find all UIDs to check which ones can be deleted.

0

Thanks @... seemed to have worked! Life saver.

0

Please sign in to leave a comment.