Skip to content

Bug1962486 optimize tocommit api #8648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Andrej1198
Copy link
Contributor

@Andrej1198 Andrej1198 commented Apr 24, 2025

The tocommit API currently searches for substrings across all commits and all repositories, this patch limits the search to commits in try and commits in the past 2 months.
The search times went from 14-15 seconds to under 1 second now
We do this by passing a date parameter for each hash and searching for +1 and -2 around the date(I assumed timezones may cause some issues so to be safe I expanded the range a bit)

@Andrej1198 Andrej1198 requested a review from gmierz April 24, 2025 18:26
@Andrej1198 Andrej1198 self-assigned this Apr 24, 2025
@Andrej1198 Andrej1198 added the WIP label Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant