Skip to content

IQSS/11778 speedup custom file retrieval#11780

Merged
ofahimIQSS merged 2 commits intoIQSS:developfrom
QualitativeDataRepository:IQSS/11778-speedup_custom_file_retrieval
Sep 5, 2025
Merged

IQSS/11778 speedup custom file retrieval#11780
ofahimIQSS merged 2 commits intoIQSS:developfrom
QualitativeDataRepository:IQSS/11778-speedup_custom_file_retrieval

Conversation

@qqmyers
Copy link
Copy Markdown
Member

@qqmyers qqmyers commented Aug 29, 2025

What this PR does / why we need it: Stops using tika to determine the mime type for custom files - saving ~80ms per file access, which can occur for multiple files and for every page

Which issue(s) this PR closes:

Special notes for your reviewer: As noted in the issue, I'd expect using the extension is good enough when the files are supplied by an admin (as in this case). If we really want to use tika to inspect these files, we should cache the results.

Suggestions on how to test this: Not sure this is easy to test as there are other factors to page load speed. That said, adding a custom header, footer, analytics file, and logo might add enough delay (est 1/3 second) that you might see a difference in average load time. (At QDR, I added code to time the tika call and the FileUtil calls.)

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?: No - the PR that changed this was post 6.7 so the slower pages shouldn't be deployed in production anywhere.

Additional documentation:

@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Aug 29, 2025
@qqmyers qqmyers moved this to Ready for Triage in IQSS Dataverse Project Aug 29, 2025
@qqmyers qqmyers added this to the 6.8 milestone Aug 29, 2025
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 23.462%. remained the same
when pulling 4f6966a on QualitativeDataRepository:IQSS/11778-speedup_custom_file_retrieval
into 6275ea9 on IQSS:develop.

@ofahimIQSS ofahimIQSS moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Sep 2, 2025
@stevenwinship stevenwinship self-assigned this Sep 3, 2025
@stevenwinship stevenwinship moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Sep 3, 2025
@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Sep 3, 2025
@stevenwinship stevenwinship removed their assignment Sep 3, 2025
@ofahimIQSS ofahimIQSS self-assigned this Sep 3, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Sep 3, 2025
@ofahimIQSS
Copy link
Copy Markdown
Contributor

merging this, looks good from my end

@ofahimIQSS ofahimIQSS merged commit 68a8999 into IQSS:develop Sep 5, 2025
16 checks passed
@github-project-automation github-project-automation Bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Sep 5, 2025
@ofahimIQSS ofahimIQSS removed their assignment Sep 5, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: 3 A percentage of a sprint. 2.1 hours.

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

Feature Request: Improve speed when retrieving custom files

5 participants