Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: Optimising very slow query
1 point by _6cj7 on June 8, 2018 | hide | past | favorite | 1 comment
I have a very slow query that takes 10s+ time on my machine. I am using SQLite and SQLAlchemy. Here are some details that I posted yesterday on Code Review SE: https://codereview.stackexchange.com/questions/196034/slow-flask-sqlalchemy-query-using-association-tables

Any help is appreciated.




How about you show the tables, indices, and the SQL query (queries) instead of relying on automagic of an ORM framework? Is it any faster if you create an appropriate SQL query yourself? How does it look like?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: