Reputation: 1936
In Oracle SQL Developer, one can list the data in a table using the Data tab when viewing a table. There is also a 'Sort...' button to set the sort order of the data you are viewing. This can be very handy for viewing some data on the fly.
The problem: I set a sort order for viewing a particular table which is not supported by the indexes on that table. It seems that SQL Developer does the sort on the fly when you go to view that data. At first the delay wasn't too bad. But the table has grown and now it takes forever. There is no way to stop it except by force quitting SQL Developer, losing anything unsaved. (If you know another way to stop this sort, let me know!) So, I should change the viewing sort order to something else, but you can only access the Sort... button when viewing the data.
Is there another way to delete the viewing sort order besides viewing the data?
Where does SQL Developer store this information?
Any way to stop the sorting of the data after clicking on the data tab while waiting for it to appear?
Upvotes: 7
Views: 8011
Reputation: 61
Easy to fix (at least in v1.5.5, which is what I'm using). There's a prefs option to reset it, read about it here: https://forums.oracle.com/forums/thread.jspa?threadID=860431
Go to Tools > Preferences > Database > ObjectViewer Parameters and select the Clear button. This will clear the sort settings.
Upvotes: 6
Reputation: 1
Upvotes: 0
Reputation:
If you are willing to take a little risk, you can follow start by doing Fabrizio's suggestion, and then clean house as follows:
Restart sqldeveloper and your problem is gone.
Upvotes: 2
Reputation:
I haven't found a command from the GUI to eliminate the sort order but you can use this workaround:
Hope this helps
Cheers, Fabrizio Fortino
Upvotes: 2
Reputation: 132570
I believe there isn't currently a way, but there is a suggested enhancement not to retain the filter between sessions that you can vote on here on the SQL Developer forum
Upvotes: 1