Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- Fixed issue where "Open in Bitbucket" and commit links for Bitbucket Server repos had an extra `/browse` in the URL. [#877](https://github.com/sourcebot-dev/sourcebot/pull/877)
- Fixed slow repo indexing scheduling query by adding database indexes. [#883](https://github.com/sourcebot-dev/sourcebot/pull/883)

### Removed
- Removed the Discord and GitHub buttons from the top corner. [#874](https://github.com/sourcebot-dev/sourcebot/pull/874)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- CreateIndex
CREATE INDEX "Repo_indexedAt_idx" ON "Repo"("indexedAt");

-- CreateIndex
CREATE INDEX "RepoIndexingJob_repoId_type_status_idx" ON "RepoIndexingJob"("repoId", "type", "status");
3 changes: 3 additions & 0 deletions packages/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ model Repo {

@@unique([external_id, external_codeHostUrl, orgId])
@@index([orgId])
@@index([indexedAt])
}

enum RepoIndexingJobStatus {
Expand Down Expand Up @@ -109,6 +110,8 @@ model RepoIndexingJob {

repo Repo @relation(fields: [repoId], references: [id], onDelete: Cascade)
repoId Int

@@index([repoId, type, status])
}

enum RepoPermissionSyncJobStatus {
Expand Down