Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOQL executed automatically on start #149

Closed
bluejackDE opened this issue May 6, 2022 · 8 comments
Closed

SOQL executed automatically on start #149

bluejackDE opened this issue May 6, 2022 · 8 comments
Labels

Comments

@bluejackDE
Copy link

bluejackDE commented May 6, 2022

Describe the bug
When I start SoqlXplorer and login to an org, it automatically executes the most recent query. Since I have accidentally tried to execute a too long query, this would always block me from working and after minutes, result in a timeout. How can I prevent SoqlXplorer from starting the query, or, alternatively: where are the recent queries stored so that I can delete them?

To Reproduce
Steps to reproduce the behavior:

  1. Have a query that is formally too long.
  2. Force-quit SoqlXplorer, because you are impatient.
  3. Start it again, login to the org
  4. Wait hours until you will be able to delete the current query.

Expected behavior
Have an option to not execute the most recent query automatically after login.
Alternatively: Identify the location the recent queries are stored to manually delete them from the system.

Desktop (please complete the following information):

  • OS: macOS Monterrey 12.3.1 (21E258)
  • SoqlXplorer Version 4.3 (4.3)

edit: typo

@bluejackDE bluejackDE added the bug label May 6, 2022
@superfell
Copy link
Owner

superfell commented May 6, 2022 via email

@bluejackDE
Copy link
Author

bluejackDE commented May 6, 2022

Stored token - and yes, I have reviewed the process on an org with a "safe" recent query. It doesn't execute it, but it seems to somehow try to interpret it already. My disastrous query holds 600k record ids in a WHERE clause - dumb mistake.

@bluejackDE
Copy link
Author

I have now tried to circumvent this by logging in through a fresh login after removing the existing token - same behaviour. SoqlXplorer doesn't even retrieve the list of objects but immediately goes into no response mode (rotating beach ball).

@superfell
Copy link
Owner

superfell commented May 6, 2022 via email

@bluejackDE
Copy link
Author

bluejackDE commented May 6, 2022

@superfell, thank you - file name and location would be great, because I could not locate any soqlx related files on my system, especially not in Library/Application Support and no plist file.

@superfell
Copy link
Owner

The file to delete is ~/Library/Preferences/com.pocketsoap.osx.SoqlXplorer.plist
Alternatively you can run this from the terminal defaults delete com.pocketsoap.osx.SoqlXplorer soql
In either case you should do it with SoqlX closed. And afterwards launch SoqlX again.

@bluejackDE
Copy link
Author

This did the job! Thanks for your support, @superfell. Just needed to leave out the soql attribute from the command.

@superfell
Copy link
Owner

with the parser perf improvements in the last release this shouldn't be an issue anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants