forked from chaoss/grimoirelab-perceval
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[git] Update references changed on the remote repo only
When repositories are synched, the backend needs to update the local references to the ones set on the remote repository. The backend processed all the references, including those up to date. This made the synchronization very slow. With this commit, only the references that were updated on the remote repository will be modified locally. We have improved the performance by 2. Repositories are in sync two or more times than before. Signed-off-by: Santiago Dueñas <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Git sync improved for `--latest-items` flag | ||
category: performance | ||
author: Santiago Dueñas <[email protected]> | ||
issue: null | ||
notes: > | ||
The speed updating a git repository when `--lates-items` | ||
is set was very poor. The main problem was when the | ||
references were updated to the new hashes. All the | ||
active refs on the repository were modified, even when | ||
they were up-to-date. Now, only references updated | ||
on the remote repository are modified on the local one. | ||
Repositories are synched 2 times faster than before. | ||