Opened 2 years ago
Closed 2 years ago
#2286 closed enhancement (fixed)
Improve performance for multi-hop child->parent->child kolumns
Reported by: | Nicklas Nordborg | Owned by: | everyone |
---|---|---|---|
Priority: | major | Milestone: | BASE 3.19.5 |
Component: | core | Version: | |
Keywords: | Cc: |
Description
In #2282, new functionality made it possible to display values from a child1->parent->child2
relation in a table list. Depending on the distance between parent and child items this may require a lot of queries against the database before the final child item is reached. One big issue is that when the parent has been reached and the downwards path to the child2 item is started the queries will once again load the same items as when moving up to the parent item. If it is certain that the two child items live in different arms as seen from the parent item it would improve performance if the up-going path was ignored when going down to the second child item.
Note that it may also make sense to not do this filtering so it should be an option.
Here are two examples:
A:
- A list with DNA extracts is displayed.
- A column that display
->Parent(Lysate)->Child(RNA)
will then display only the RNA that was extracted from the same Lysate as the corresponding DNA. - In this case it makes sense to enabled the performance optimization
B:
- The same list with DNA extracts is displayed.
- A column that display
->Parent(Patient)->Child(RNA)
will then display all RNA that is related to the same patient as the DNA, including those RNA that are from different samples. - In this case the performance optimization can't be used.
Change History (5)
comment:1 by , 2 years ago
comment:5 by , 2 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In 8087: