Make bulk search fast#1017
Conversation
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
pombredanne
left a comment
There was a problem hiding this comment.
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 <tushar.goel.dav@gmail.com>
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 <tushar.goel.dav@gmail.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
| db_index=True, | ||
| ) | ||
|
|
||
| plain_package_url = models.CharField( |
There was a problem hiding this comment.
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!
pombredanne
left a comment
There was a problem hiding this comment.
Thanks! This will need to be refined name wise but this is a good fix for now.
Merging
Signed-off-by: Tushar Goel tushar.goel.dav@gmail.com