Multiple failed exports cause platform to become unresponsive/slow

Open
#2,819 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
postgresql, python

Research direction

The report concerns classification CSV exports that stall and slow the whole platform, so the work starts in the export code path, which the payload does not name. Reproduce by generating a grouped classification export over a large set of labs and watch database load while it runs. Done means the export fails or finishes without degrading record listing, with a test or a clear explanation of the cause.

Written by the indexing model from the issue text.

Description

Attempted to export - 1. Classification CSV (ungrouped) with all labs, classification CSV (grouped) with all labs. Neither of the exports were successful. The following error was recorded in Slack. I think this error was in regards to the classification csv ungrouped
Screenshot 2026-11-13 at 5.02.54 PM.png

The grouped csv was exporting for minimum 5 minutes, before I cancelled. Previous exports that were the same, exported without issue (I think something may have happened to clog up the database??)

This also made the platform quite slow - 40s for classification record listing to load
11 s for each grouping to expand
16 s for overlaps and discordances

Should the export be more robust? I thought it would just exit or die, rather than slowing down everything.

Dominant language
Python
Stars
31
Forks
4
Avg merge
4h 52m
Merged PRs (30d)
183

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SACGF/variantgrid

All issues in SACGF/variantgrid

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.