Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature/improve coverage source query #981

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

Merged
merged 4 commits into from
Jul 18, 2019

Conversation

jgebal
Copy link
Member

@jgebal jgebal commented Jul 17, 2019

Resolves #970

@rafael-trevisan - Will you be able to apply the changed package body on your DB, that was causing problems and confirm that it is working as expected?

This PR includes a different solution to the one your DBA has applied but it should also work fine.
The changed query syntax also applies some readability improvements to the code.

@rafael-trevisan
Copy link

rafael-trevisan commented Jul 17, 2019

Hi @jgebal, I confirm the change that @fabiopan has done is already in our DB and works beautifully. We've been generating the Coverage Report since the last couple days without any problem and its line number is accurate.

We did some improvement in the original workaround, so the version @fabiopan has posted is the lastest one.

@PhilippSalvisberg
Copy link
Member

PhilippSalvisberg commented Jul 18, 2019

The code is much more readable due to the code templates. And the query does not need subqueries anymore. That’s good. However, the optimizer has still the freedom to completely rewrite the statement. If this results in a bad plan (for all/dba_source access) then further named subqueries to isolate all/dba_source access with a no_merge or materialize hint might help. I’d go with this change “as is” now.

@PhilippSalvisberg PhilippSalvisberg merged commit 0858701 into develop Jul 18, 2019
@PhilippSalvisberg PhilippSalvisberg mentioned this pull request Jul 18, 2019
@jgebal jgebal deleted the feature/improve_coverage_source_query branch July 18, 2019 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Coverage Report doesn't run (or takes forever)
3 participants