Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Search: increase default search limit#60114

Merged
camdencheek merged 4 commits into
mainfrom
cc/bump-search-limit
Feb 5, 2024
Merged

Search: increase default search limit#60114
camdencheek merged 4 commits into
mainfrom
cc/bump-search-limit

Conversation

@camdencheek

@camdencheek camdencheek commented Feb 2, 2024

Copy link
Copy Markdown
Member

This bumps the default search limit once more from 2000 to 10000. This is the last planned increase. We have already saturated the display limit, so we should not see any significant increase in the payload sizes, which has been the source of any perf issues so far.

Test plan

Will watch search blitz as this rolls out. As with the previous increases, I do not expect a significant effect on performance.

@keegancsmith keegancsmith left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think monitoring stability of frontend/etc would also be useful here. I don't expect zoekt or search blitz to necessarily be effected. However, it might be easier for us to aggregate too much in the frontend (although I suppose streaming should avoid that). If there is a negative effect, I imagine it would mostly be dotcom specific.

@camdencheek camdencheek enabled auto-merge (squash) February 5, 2024 16:01
@camdencheek camdencheek merged commit a8a6a85 into main Feb 5, 2024
@camdencheek camdencheek deleted the cc/bump-search-limit branch February 5, 2024 16:23
@sourcegraph-release-bot

Copy link
Copy Markdown
Collaborator

The backport to 5.3 failed at https://github.com/sourcegraph/sourcegraph/actions/runs/7787597063:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-5.3 5.3
# Navigate to the new working tree
cd .worktrees/backport-5.3
# Create a new branch
git switch --create backport-60114-to-5.3
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a8a6a855fb242a5e55f9d621575cdbc4714c6fae
# Push it to GitHub
git push --set-upstream origin backport-60114-to-5.3
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-5.3

If you encouter conflict, first resolve the conflict and stage all files, then run the commands below:

git cherry-pick --continue
# Push it to GitHub
git push --set-upstream origin backport-60114-to-5.3
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-5.3
  • Follow above instructions to backport the commit.
  • Create a pull request where the base branch is 5.3 and the compare/head branch is backport-60114-to-5.3., click here to create the pull request.
  • Make sure to tag @sourcegraph/release-guild in the pull request description.
  • Once the backport pull request is created, kindly remove the release-blocker from this pull request.

@sourcegraph-release-bot sourcegraph-release-bot added backports failed-backport-to-5.3 release-blocker Prevents us from releasing: https://about.sourcegraph.com/handbook/engineering/releases labels Feb 5, 2024
@keegancsmith

Copy link
Copy Markdown
Member

@camdencheek just in case you missed it, the backport failed.

@camdencheek

Copy link
Copy Markdown
Member Author

Ooh, thanks for the ping! I did, in fact, miss this

@camdencheek camdencheek removed the release-blocker Prevents us from releasing: https://about.sourcegraph.com/handbook/engineering/releases label Feb 6, 2024
camdencheek added a commit that referenced this pull request Feb 6, 2024
This increases the default search result limit from 2000 to 10000

(cherry picked from commit a8a6a85)
camdencheek added a commit that referenced this pull request Feb 6, 2024
Search: increase default search limit (#60114)

This increases the default search result limit from 2000 to 10000

(cherry picked from commit a8a6a85)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants