Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Display of 300,000 relation filtered list takes too much time (never completes) #858

Closed
pombredanne opened this issue Aug 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@pombredanne
Copy link
Member

pombredanne commented Aug 12, 2023

When I try to filter in the web UI these relations by map type, it never completes.
When I do a CodebaseRelation.objects.filter(map_type="dwarf_compiled_paths")[:1000] on the same data this is returned in less than a second.

@pombredanne pombredanne added the bug Something isn't working label Aug 12, 2023
@pombredanne
Copy link
Member Author

In terms of solution, we could avoid displaying the To/ resources that are not mapped entirely and instead just provide a link to the un-mapped To/ resources and another for the un-mapped From/ resources at the top of the page; and therefore only work from the relation table, avoiding any joins or iceberg queries.

tdruez added a commit that referenced this issue Aug 14, 2023
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Aug 14, 2023
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Aug 15, 2023
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Aug 16, 2023
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Aug 16, 2023
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Aug 16, 2023
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Aug 16, 2023
Signed-off-by: Thomas Druez <tdruez@nexb.com>
@tdruez tdruez closed this as completed Aug 16, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants