Skip to content

Improve performance of verbose tourbook export #509

Description

@chrgernoe

The current implementation of the tourbook export has two performance killers.

  1. To resolve the tourbook entries, there is a loop over all entries inside the corresponding export where every entry creates additional database queries (N+1 query problem) inside the TourbookEntryVerbose.
    Solution: Create a single DAO method that joins the Ascend, Route, Rock, Sector, and Region tables. This way, you get all the data in one single query.
  2. The TourbookEntryVerbose makes use of Kotlin reflection, which also has a performance impact.
    Solution: Use a data class.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions