bihealth / sodar-server

SODAR: System for Omics Data Access and Retrieval
https://github.com/bihealth/sodar-server
MIT License
14 stars 3 forks source link

Review and optimize irodsbackend retrieval in study/assay pluginpoints/helpers #1952

Closed mikkonie closed 2 weeks ago

mikkonie commented 2 weeks ago

I noticed that for SampleSheetAssayPluginPoint.get_assay_path(), we always get irosbackend with get_backend_api(). This is not well performing, as we have to use a Django database query each time the method is invoked. Even with Django caching this is obviously wasteful.

I should also look into other study/assay plugin modules, especially per-row methods, to ensure we don't have identically wasteful behaviour anywhere in this old code.

mikkonie commented 2 weeks ago

Done. Accidentally committed as a part of #1955. Hey, I was panicing ;)