Exmaralda-Org / exmaralda

26 stars 15 forks source link

Long processing time after edit contribution #483

Closed berndmoos closed 2 months ago

berndmoos commented 3 months ago

Original description:

  1. OrthoNormal

(Version: 1.0.1, Buildtime: 20240531.1155, Java Version: 17.0.11, OS: Win 10)

Bei der Bearbeitung mittels "Beitrag bearbeiten" dauert die Übernahme einer Änderung teilweise über eine halbe Minute. Ich kann den Fehler nicht sauber replizieren - mal erfolgt eine Änderungsübernahme sofort, manchmal dreht sich der Fortschrittskreis eben eine halbe Minute und man geht fast davon aus, dass sich Orthonormal aufgehängt hat.

berndmoos commented 3 months ago

I can reproduce the behavior. Need to profile what is taking so long.

berndmoos commented 3 months ago

It is the consolidating of token IDs which can take up to 30 seconds.

berndmoos commented 3 months ago

Related to #322

berndmoos commented 3 months ago

Changing the method for looking up existing IDs makes it fast as lightning. We are talking about lightning which has seen better days, has a slight limp on the right leg and is carrying quite a lot of baggage, but still: lightning!