• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codebar / planner / 28012425553
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: feature/magic-link-auth
DEFAULT BRANCH: master
Ran 23 Jun 2026 08:22AM UTC
Jobs 1
Files 186
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Jun 2026 08:18AM UTC coverage: 95.36% (+0.05%) from 95.31%
28012425553

Pull #2666

github

mroderick
perf: paginate combined events with DB-level UNION ALL instead of in-memory sort

Extract fetch_upcoming_events and fetch_past_events into two new methods:
- paginated_events(upcoming:) — builds a UNION ALL across workshops,
  meetings, and events with LIMIT/OFFSET at the database level
- load_events(rows) — fetches only the 20 visible rows with full
  eager loading, preserving UNION sort order

Previously, all past workshops (~1100) were loaded into AR objects and
sorted/paginated in Ruby. Now only the current page's 20 rows ever
leave the database.

Benchmark (first load / cached):
  Past events page: 11.3s → 1.3s
  DB queries count: ~119 → 118 (same — view N+1s unchanged)
  Allocations: 25M → 2.9M (cached)
Pull Request #2666: perf: paginate combined events with DB-level UNION ALL instead of in-memory sort

56 of 56 new or added lines in 1 file covered. (100.0%)

3576 of 3750 relevant lines covered (95.36%)

42.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28012425553.1 23 Jun 2026 08:22AM UTC 1116
69.45
GitHub Action Run
Source Files on build 28012425553
  • Tree
  • List 186
  • Changed 118
  • Source Changed 1
  • Coverage Changed 118
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28012425553
  • Pull Request #2666
  • PR Base - bullet-n-plus-one-fixes (#28009616479)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc