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

Reduce redundant utPLSQL API calls #88

Open
PhilippSalvisberg opened this issue Aug 25, 2019 · 1 comment
Open

Reduce redundant utPLSQL API calls #88

PhilippSalvisberg opened this issue Aug 25, 2019 · 1 comment
Labels
Milestone

Comments

@PhilippSalvisberg
Copy link
Member

@PhilippSalvisberg PhilippSalvisberg commented Aug 25, 2019

Example of the Problem

When the “Check availability of menu option” in the “Run utPLSQL test” tab of the preferences is checked, then the following statements are executed twice on a right-click of a schema/user node in the Database Navigator window:

BEGIN
   ? := ut.version;
END;
DECLARE
   l_return VARCHAR2(1) := '0';
BEGIN
   IF ut_runner.has_suites(?) THEN
      l_return := '1';
   END IF;
   ? := l_return;
END;

The reason is, that there are two menu options:

  • Run utPLSQL test
  • Code coverage...

Each menu item needs to be enabled or disabled. Therefore the SQL Developer framework calls update per menu item (action). This cannot be changed by this extension. However, the extension can control the executions of the SQL statements.

Enhancement Request

Provide a SQL result caching mechanism. Via a DIY-implementation or via some standard functionality like the JDBC client-side result cache.

@PhilippSalvisberg
Copy link
Member Author

@PhilippSalvisberg PhilippSalvisberg commented Aug 25, 2019

Using the JDBC client-side result cache is the preferred way, even if it requires some database configuration and certain driver versions. If the configuration does not support client-side result cache, then it will still work, just without caching, which is acceptable.

  • Client-Side Result Cache works with JDBC OCI driver since version 11.1 and with JDBC Thin driver since version 18.1 Feature List
  • SQL Developer 19.2 comes with a version 18.3.0.0.0 of ojdbc8.jar
  • See Client-Side Result Set Cache for configuration details
@PhilippSalvisberg PhilippSalvisberg modified the milestones: v1.3.0, v1.4.0 May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.