Skip to content

The /ballot page is running 6 SQL queries per ballot entry #488

Description

@dfabulich

Run the test in #487.

Actual: The test fails, saying that adding 15 entries adds 90 SQL queries to the page, 6 queries per entry.

Expected: The test should pass, saying that adding 15 entries doesn't add 15 SQL queries to the page.

The ballot should query for all needed data up front, using DBIC joins and prefetching.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions