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

pulibrary / allsearch_api / 968494f1-105d-425e-9cbe-4fdc1bcf32de
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/bundler/bootsnap-1.20.1
DEFAULT BRANCH: main
Ran 02 Dec 2025 04:54PM UTC
Jobs 3
Files 70
Run time 1min
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

02 Dec 2025 04:53PM UTC coverage: 99.904% (+0.001%) from 99.903%
968494f1-105d-425e-9cbe-4fdc1bcf32de

push

circleci

sandbergja
Remove ActiveRecord-based LibraryDatabaseRecord class

This also improves the performance of loading Library Database metadata from Lib-jobs
by combining all creation into a single INSERT query, rather than running an INSERT
for each row in the CSV.

To confirm, I ran this benchmark before deleting the LibraryDatabaseRecord class:

```
Benchmark.ips do |b|
  library_database_repo = LibraryDatabaseRepository.new Rails.application.config.rom
  csv = CSV.read Rails.root.join('spec/fixtures/files/libjobs/library-databases.csv'), headers: true
  b.report('LibraryDatabaseRecord::new_from_csv') do
    csv.each { LibraryDatabaseRecord.new_from_csv(it)}
    library_database_repo.delete
  end

  b.report('LibraryDatabaseRepository#create_from_csv') do
    library_database_repo.create_from_csv csv
    library_database_repo.delete
  end

  b.compare!
end
```

Results:

```
Warming up --------------------------------------
LibraryDatabaseRecord::new_from_csv
                         3.000 i/100ms
LibraryDatabaseRepository#create_from_csv
                        10.000 i/100ms
Calculating -------------------------------------
LibraryDatabaseRecord::new_from_csv
                         28.764 (±27.8%) i/s   (34.77 ms/i) -    135.000 in   5.004122s
LibraryDatabaseRepository#create_from_csv
                        116.179 (±18.9%) i/s    (8.61 ms/i) -    560.000 in   5.031764s

Comparison:
LibraryDatabaseRepository#create_from_csv:      116.2 i/s
LibraryDatabaseRecord::new_from_csv:       28.8 i/s - 4.04x  slower
```

Closes #402

14 of 14 new or added lines in 2 files covered. (100.0%)

12 existing lines in 3 files now uncovered.

1040 of 1041 relevant lines covered (99.9%)

104.28 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
50.0
-50.0% app/controllers/best_bet_controller.rb
5
66.67
-33.33% app/models/best_bet_document.rb
5
61.54
-38.46% app/models/best_bet.rb
Jobs
ID Job ID Ran Files Coverage
1 968494f1-105d-425e-9cbe-4fdc1bcf32de.1 02 Dec 2025 04:54PM UTC 70
86.55
2 968494f1-105d-425e-9cbe-4fdc1bcf32de.2 02 Dec 2025 04:54PM UTC 70
84.92
3 968494f1-105d-425e-9cbe-4fdc1bcf32de.3 02 Dec 2025 04:54PM UTC 70
84.73
Source Files on build 968494f1-105d-425e-9cbe-4fdc1bcf32de
  • Tree
  • List 70
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #968494F1...
  • c3847b19 on github
  • Prev Build on main (#A8D8FC0F...)
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