Commit 7ef7b99
authored
Add unique index on documents.source_url to fix slow uniqueness valid… (#246)
* Add unique index on documents.source_url to fix slow uniqueness validation
The uniqueness validation on source_url was doing a full table scan on every
document save. This adds a partial unique index excluding NULL and empty
string values, matching the `if: -> { source_url.present? }` condition.
Made-with: Cursor
* Update dependencies in Gemfile and Gemfile.lock to address security vulnerabilities
- Added 'nokogiri' version 1.19.1 to fix GHSA-wx95-c6cv-8532 and CVE-2026-22860, CVE-2026-25500.
- Updated 'rack' to version 3.1.20 for improved security and compatibility.
* Update Ruby version to 3.3.8 in .ruby-version, Gemfile, and GitHub Actions workflow
- Updated Ruby version from 3.2.2 to 3.3.8 in .ruby-version and Gemfile for compatibility.
- Adjusted GitHub Actions workflow to use the new Ruby version for CI/CD processes.
- Updated Gemfile.lock to reflect the new Ruby version.1 parent 2d31025 commit 7ef7b99
File tree
6 files changed
+28
-9
lines changed- .github/workflows
- db
- migrate
6 files changed
+28
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| 539 | + | |
539 | 540 | | |
540 | 541 | | |
541 | 542 | | |
| |||
559 | 560 | | |
560 | 561 | | |
561 | 562 | | |
| 563 | + | |
562 | 564 | | |
563 | 565 | | |
564 | 566 | | |
| |||
567 | 569 | | |
568 | 570 | | |
569 | 571 | | |
| 572 | + | |
570 | 573 | | |
571 | 574 | | |
572 | 575 | | |
| |||
594 | 597 | | |
595 | 598 | | |
596 | 599 | | |
597 | | - | |
| 600 | + | |
598 | 601 | | |
599 | 602 | | |
600 | 603 | | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments