Skip to content

Bug report: Cloning large codelists fails #2969

@Jongmassey

Description

@Jongmassey

Summary

Cloning large and/or complex CodelistVersions fails

What did you do and what did you expect to happen?

  • Opened https://www.opencodelists.org/codelist/opensafely/migration-status/4095ab22/

  • Clicked "Clone this codelist"

  • Expected a clone of this codelist to appear in the list of my codelists

  • After a long delay an internal server error was returned

  • Running locally with a recent database backup, the process does complete but takes ~180s

  • This is a large codelist (~7500 codes) with many very broad and overlapping searches and thus many inclusion/exclusion decisions associated with it

Impact of the bug

User reported on Slack
Can workaround for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions