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

WINDUP-952 Multi-application support for Spring bean report #860

Merged
merged 1 commit into from
Mar 21, 2016

Conversation

mkouba
Copy link
Contributor

@mkouba mkouba commented Mar 21, 2016

Note that this PR does not contain a test. Actually, I'm not quite sure how to write such a test yet. But I will try to do my best if it's required ;-)

@windupgithubbot1
Copy link

Can one of the admins verify this patch?

1 similar comment
@windupgithubbot1
Copy link

Can one of the admins verify this patch?

@jsight
Copy link
Member

jsight commented Mar 21, 2016

@windupgithubbot1 retest

1 similar comment
@jsight
Copy link
Member

jsight commented Mar 21, 2016

@windupgithubbot1 retest

@jsight jsight merged commit 494e064 into windup:master Mar 21, 2016
if (application.equals(model.getApplication()))
{
models.add(model);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to filter at the DB query level. Imagine getting 1 000 000 spring beans from 1000 apps. That means 1000 x running through 1 000 000 beans filtering out a fraction of them. Not that I expect 1mil beans, but we should pay attention to performance.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OndraZizka +1 - I changed this while merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. I was not sure how to implement this properly. Anyway, we should probably review all other rules as well. For instance, CreateJPAReportRuleProvider gets and filters all the JPA entities...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, those could likely be improved as well. I did go through them to find any cases where we weren't filtering by app (hopefully I found them all).

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

Successfully merging this pull request may close these issues.

4 participants