Skip to content

Commit 1698dc4

Browse files
committed
add fixme
1 parent 5739201 commit 1698dc4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

chado/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ class Db(Base):
217217
# Inspired from https://bitbucket.org/zzzeek/sqlalchemy/wiki/UsageRecipes/ManyToManyOrphan
218218
# In chado, a feature can be part of multiple analysis, using the analysisfeature table
219219
# With the following code, when we delete an analysis, it also deletes all features that were only part of this single analysis
220+
# FIXME This is slow for analysis with many features, it runs 1 delete query per feature
220221
@event.listens_for(self.session, 'after_flush')
221222
def delete_feature_orphans(session, ctx):
222223
# List all features that were attached to a deleted analysis

0 commit comments

Comments
 (0)