jkomoros / card-web

The web app behind thecompendium.cards
Apache License 2.0
46 stars 8 forks source link

Editing a concept card is excruciatingly slow #571

Open jkomoros opened 2 years ago

jkomoros commented 2 years ago

It's gotten way, way slower than it used to be.

jkomoros commented 2 years ago

Maybe only immediately after creating the card?

jkomoros commented 2 years ago

The part that is still very very slow is when a new concept card (or title alternate) is saved; after that point for maybe 17 seconds or so the entire pipeline is busy waiting for the expensive suggest missing concepts to run. The work in #580 and others significantly sped up normal flows because it skips this expensive pipeline, but when the pipeline does run (when concepts map does change) it is really expensive to run missing-concepts. Maybe disable those in the UI when editing or something? Or make them lazy loaded?

jkomoros commented 2 years ago

The work in #581 and #585 helped with this presumably