Skip to content

add indexes to improve query performance #4

@fgregg

Description

@fgregg

The csv download for this query is timing out.

Here's the explain query plan.

Let's add some indexes with sqlite-utils to improve the query performance.

  1. Build the database
  2. Run datasette locally with a timeout setting of --setting sql_time_limit_ms 100000
  3. Run query locally.
  4. Add indexes to improve query performance
  5. Choose which indexes to add and add them to the Makefile with sqlite-utils

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions