DocNow / diffengine

track changes to the news, where news is anything with an RSS feed
MIT License
177 stars 30 forks source link

Attempt to optimize version querying by adding a limit statement #51

Closed ryanfb closed 5 years ago

ryanfb commented 5 years ago

In looking at my diffengine instances with large SQLite databases, by using py-spy I noticed that they were spending almost all their time executing the versions SQL query. Since we only use one result, adding limit(1) to the query may significantly improve performance (particularly for large databases).