Skip to content

query seems to execute quite slow #8

@domino14

Description

@domino14

This query took almost 11 seconds to execute on the OSPS42.db lexicon database.

SELECT word, alphagram FROM (
        SELECT alphagrams.alphagram
        FROM alphagrams
        WHERE alphagrams.length = 9 AND alphagrams.contains_update_to_lex = 1
        ORDER BY alphagrams.probability
        ) q
INNER JOIN words w using (alphagram)

If I execute this query directly in sqlite3, it is almost instantaneous! What is happening?

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