Tag removal performance#4842
Conversation
|
Good to merge. |
|
Can you add some tests? |
|
@jburel We already have some robot tests for adding & removing tags with Tag Dialog. I've added more tests for removing tags with the (-) button on the Tag itself (all these tests check that the tag was actually removed successfully). |
|
Tested with http://web-dev-merge.openmicroscopy.org/webclient/ user-3 Tag addition and deletion works as expected - single and batch. |
|
Sorry for not replying earlier, for performance I was not thinking of a robot test |
|
@jburel For performance testing of removing a tag from 50 objects, how slow is too slow? In my experience, performance tests are either very flaky if the limit is set too short (and therefore ignored) or are set so long as to be meaningless. |
|
It does seem that the usual way we fix a flaky performance test is to disable it or to increase its patience. Variations in CI deployment make them tricky. In this case though, can maybe make sure it's no more than thrice longer than removing a tag from 10, or something? |
|
e.g. #4821 |
|
from #4821 -
sigh yes, indeed |
|
but at least we can evaluate it |
|
To test last commits:
|
|
|
|
This is conflicting with spw grid view so if this is "good to merge" then it would be good to get it in soon. cc @pwalczysko |
|
Both robot and integration tests are green. |
|
The performance is pretty speedy if you remove one tag from 200 images. If you remove 18 from 200, it is slower obviously, but still acceptable. |
|
Thanks |
What this PR does
A couple of performance improvements for removing tags from images.
See https://trello.com/c/gPkTUuw5/23-tags-removal-takes-too-long-on-200-images
We now use the batch
conn.deleteObjects()withwait=Falseto not wait on async delete, instead of doing a singleconn.deleteObject()for each link in turn.Testing this PR