Skip to content

Fix indexes for guestbook response - #12616

Merged
qqmyers merged 8 commits into
developfrom
fix-indexes-for-guestbook-response
Aug 18, 2026
Merged

Fix indexes for guestbook response#12616
qqmyers merged 8 commits into
developfrom
fix-indexes-for-guestbook-response

Conversation

@stevenwinship

@stevenwinship stevenwinship commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it: Download counts were taking minutes to query from the db. These indexes help speed that up.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer:

Suggestions on how to test this: Test querying the database
example query:
-c "\timing" -c "select count(*) from GuestbookResponse where dataset_id = 10293818 and eventtype != 'AccessRequest' and responsetime < '2026-08-01';"

@stevenwinship and I have tested the performance on the prod. db snapshot, and the real thing; and will be testing it some more. For the purposes of qa and merging, it should be sufficient to confirm that the indexes are created on deployment, with existing and brand-new databases. (L.A.)

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?: included

Additional documentation:

@stevenwinship stevenwinship self-assigned this Aug 14, 2026
@stevenwinship stevenwinship moved this to In Progress 💻 in IQSS Dataverse Project Aug 14, 2026
@stevenwinship stevenwinship added Size: 3 A percentage of a sprint. 2.1 hours. FY27 Sprint 4 FY27 Sprint 4 (2026-08-12 - 2026-08-26) labels Aug 14, 2026
@stevenwinship stevenwinship added this to the 6.12 milestone Aug 14, 2026
@coveralls

coveralls commented Aug 14, 2026

Copy link
Copy Markdown

Coverage Status

Coverage is 25.01%fix-indexes-for-guestbook-response into develop. No base build found for develop.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown

Test Results

404 tests   389 ✅  32m 50s ⏱️
 55 suites   15 💤
 55 files      0 ❌

Results for commit 49c61a1.

♻️ This comment has been updated with latest results.

@stevenwinship stevenwinship moved this from In Progress 💻 to Ready for Review ⏩ in IQSS Dataverse Project Aug 14, 2026
@stevenwinship stevenwinship removed their assignment Aug 14, 2026
@landreev landreev moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Aug 14, 2026
@landreev landreev self-assigned this Aug 14, 2026
@landreev landreev moved this to In Review 🔎 in IQSS Dataverse Project Aug 14, 2026
Comment thread src/main/java/edu/harvard/iq/dataverse/GuestbookResponseServiceBean.java Outdated
@github-actions

This comment has been minimized.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Aug 14, 2026
@landreev landreev removed their assignment Aug 14, 2026
@github-actions

This comment has been minimized.

@qqmyers qqmyers moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Aug 17, 2026
@qqmyers qqmyers self-assigned this Aug 17, 2026
Added a comment regarding Flyway usage for additional indexes to improve download count query performance.
@github-actions

This comment has been minimized.

@qqmyers

qqmyers commented Aug 17, 2026

Copy link
Copy Markdown
Member

Reported gdcc/dataverse-jsf-tests#1 seen in this PR.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@github-actions

Copy link
Copy Markdown

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:fix-indexes-for-guestbook-response
ghcr.io/gdcc/configbaker:fix-indexes-for-guestbook-response

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@qqmyers

qqmyers commented Aug 18, 2026

Copy link
Copy Markdown
Member

Looks good. Tests passing.

@qqmyers
qqmyers merged commit 7d9f9f4 into develop Aug 18, 2026
27 of 28 checks passed
@github-project-automation github-project-automation Bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Aug 18, 2026
@pdurbin pdurbin moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY27 Sprint 4 FY27 Sprint 4 (2026-08-12 - 2026-08-26) Size: 3 A percentage of a sprint. 2.1 hours.

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

6 participants