Skip to content

Commit ad63bf8

Browse files
authored
Run ANALYZE on the lobsters in-memory database (#565)
1 parent 3287605 commit ad63bf8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎benchmarks/lobsters/benchmark.rb‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
b = SQLite3::Backup.new(mem_db, 'main', file_db, 'main')
1616
b.step(-1) # import until finished
1717
b.finish # destroy the Backup object
18+
# The fixture has no planner statistics. Without them, SQLite misplans the
19+
# hottest-stories query behind /, /recent and /rss.
20+
mem_db.execute("ANALYZE")
1821

1922
app = Rails.application
2023
generator = RouteGenerator.new(app)

0 commit comments

Comments
 (0)