-
Notifications
You must be signed in to change notification settings - Fork 201
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
Make bulk search fast #1017
Make bulk search fast #1017
Conversation
Signed-off-by: Tushar Goel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
See feedback inline.
@pombredanne the tests where we ignore qualifiers and subpath are failing because we are matching purls directly without removing qualifiers and subpath, what I suggest as a solution is to store |
Signed-off-by: Tushar Goel <[email protected]>
31ddf10
to
17317ca
Compare
Yes, you should store both full purl and plain purl and allow to run the matching on the plain purl. |
Signed-off-by: Tushar Goel <[email protected]>
Signed-off-by: Tushar Goel <[email protected]>
db_index=True, | ||
) | ||
|
||
plain_package_url = models.CharField( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not in love with the plain_package_url
name but this makes sense for now. We will need to find a better way.
I will merge for now!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This will need to be refined name wise but this is a good fix for now.
Merging
Signed-off-by: Tushar Goel [email protected]