Skip to content
This repository was archived by the owner on Jan 4, 2023. It is now read-only.
This repository was archived by the owner on Jan 4, 2023. It is now read-only.

Lagginess when removing variables from equations  #239

@harper-wavra

Description

@harper-wavra

Ryan noticed a lagginess in the services "While completing equation edits in MT (10 equations per region), I noticed that the client seemed to have slower response times for each consecutive edit. I would often get a red warning box: "
image
"Sometimes happening multiple times in succession while trying to save. After a while (maybe every 10th equation or so) it would close with the following out-of-memory error:"
image

After digging into this a bit I think it only happens when removed variables from equations. Other things I noted:

  • The laggyness still seems to happen even if I only select 3 or 4 of the peakflow equations, instead of all of them.
  • If you are just editing the equation text and not removing a variable it seems to work fine
  • I tried some requests to the services with insomnia. When it starts to fail I get the X-USGSWIM_Messages error about threading
  • If you send the same request right away after it failed the first time it works the second time
  • Seems to have no problem when adding a variable to each equation, just has issues when removing
  • This makes me wonder if this has always been a problem and we were just never removing variables from multiple equations one after the other?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions