Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query seems to execute quite slow #8

Open
domino14 opened this issue Feb 25, 2020 · 0 comments
Open

query seems to execute quite slow #8

domino14 opened this issue Feb 25, 2020 · 0 comments

Comments

@domino14
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant