Speed up deleting derivation sources
This commit is contained in:
parent
530f58b59c
commit
84a2ad5b25
1 changed files with 2 additions and 3 deletions
|
|
@ -435,10 +435,9 @@ DELETE FROM derivation_source_files
|
|||
WHERE id IN (
|
||||
SELECT id
|
||||
FROM derivation_source_files
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1
|
||||
WHERE id NOT IN (
|
||||
SELECT derivation_source_file_id
|
||||
FROM derivation_sources
|
||||
WHERE derivation_source_file_id = derivation_source_files.id
|
||||
)
|
||||
LIMIT 100
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue