Skip to content

Performance issue with metadata #1230

Open

Description

@ppettit

Open the metadata dialog (editing or creating an event) causes a huge file download and is very slow.

/admin-ng/event/new/metadata gets loaded (including all series data) 4 times when opening the create event dialog, closing the dialog loads it a further 2 more times!

create.event.metadata.mp4

Opening an existing event loads metadata only once but it is still slow because it loads all series metadata

existing.event.metadata.mp4

It would be better if as well as removing the duplicated loads we could use an autocomplete to search for series and not load the entire set.

Activity

  1. priya-tik commented on May 13, 2025

    @priya-tik
    Contributor

    Hallo, I have just resolved the issue regarding the unnecessary metadata fields. You can check the PR #1235 for the details and changes made.

  2. Arnei commented on Jun 20, 2025

    @Arnei
    Member

    As far as I can tell the biggest time waster is this code in the backend https://github.com/opencast/opencast/blob/e11426559dc3ad229f59b1e0d2f945ade7591b5a/modules/index-service/src/main/java/org/opencastproject/index/service/resources/list/provider/SeriesListProvider.java#L157. It checks if two or more series have the same title and if true, modifies the series title to be unique. It does this for all series. On my system that takes about 4~5 seconds for about 10000 series, which makes for most of the time of the webrequest. It would already help a fair bit if we could find a way to not do that.

    The query to get all series itself still takes a solid second on my system (for about 10000 series), so we'd still be pretty slow even if the above was not an issue.

    For me, /admin-ng/event/new/metadata is fired once when opening the Create Event dialog and not at all when closing it. Maybe this has been fixed in the meantime.

    I am also not seeing all series metadata being loaded when opening the dialog for an existing event. Only a huge array of "Series Title: Series ID" key value pairs. Which request is loading the metadata?

  3. ppettit commented on Jun 20, 2025

    @ppettit
    ContributorAuthor

    Hey @Arnei thanks for taking a look! I'm away from computers for a couple of weeks so can't look properly until I get back 😊.

    I think the multiple requests were probably due to running the frontend in dev mode which I wasn't aware of at the time so that's probably not a problem now.

    I'll be back at work on July 7th so I'll do some more testing then.

  4. EnsiyehE commented on Jul 21, 2025

    @EnsiyehE
    Contributor

    Hello everyone,

    I've been looking into this issue and came up with a possible solution that I’ve implemented on the frontend from a user experience perspective.

    It’s not perfect yet, but the idea is to lock the page using an overlay with a busy indicator while the metadata is still loading after clicking on the "Edit Event" panel. This prevents user interaction until the necessary data is available.

    Please let me know if this approach could be considered as a viable solution, or if there are suggestions to improve it further.

    Best regards,
    Ensiyeh
    Image

  5. snoesberger commented on Aug 19, 2025

    @snoesberger
    Contributor

    We just run into the same problems after updating our Opencast to 17.x.
    On our installation, not only is opening the event dialogue slow, but entering text into any of the fields (like "title") is also slow. When I type into one of these fields, the characters appear slowly, one after the other. @Arnei, do you know if this is also caused by the backend code that you mentioned and fixed with #1375? Or is this a completely different issue?

  6. snoesberger commented on Aug 20, 2025

    @snoesberger
    Contributor

    We just run into the same problems after updating our Opencast to 17.x. On our installation, not only is opening the event dialogue slow, but entering text into any of the fields (like "title") is also slow. When I type into one of these fields, the characters appear slowly, one after the other. @Arnei, do you know if this is also caused by the backend code that you mentioned and fixed with #1375? Or is this a completely different issue?

    I don't think the problem with slow text entry is related to this issue. Therefore, I have created a new issue: #1406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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