Skip to content
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

Slow GitLab fetching? #276

Open
okainov opened this issue Aug 16, 2018 · 6 comments
Open

Slow GitLab fetching? #276

okainov opened this issue Aug 16, 2018 · 6 comments

Comments

@okainov
Copy link
Contributor

okainov commented Aug 16, 2018

I just tried to connect Mantis with my GitLab repo (~1400 commits) and when I clicked "Fetch latest changes" it looked hanging and using all my CPU more than for 5 minutes... Is it expected? Maybe you could add some progress bar to the page to show the users how is it going... because now it's just dead and using all CPU available...

@okainov
Copy link
Contributor Author

okainov commented Aug 17, 2018

Average speed seems to be ~1 commit per second... So importing repo with 1000 commits will take around 15 minutes... Taking into account that you don't parse and load diffs but only commit messages it seems very slow

@okainov
Copy link
Contributor Author

okainov commented Aug 17, 2018

Also it seems that function is not being terminated after finishing the full import. If I open mantis in another page, I can see that imported repo was created and replaced original repo, so it looks like done, but tab with full import is still doing something \ waiting for reply...

@atrol
Copy link
Member

atrol commented Aug 18, 2018

Taking into account that you don't parse and load diffs but only commit messages it seems very slow

I didn't have a deeper look, but did you measure that the MantisBT / plugin part is the bottleneck?
Maybe the GitLab part is the slow one.

@okainov
Copy link
Contributor Author

okainov commented Aug 18, 2018

Even if it's Gitlab (which I'm really not sure, because I can clone my repo in less than 1 minute. I assume Mantis should use API for fetching commits only and it should be even faster), it would be still very nice to show the progress and don't make impression of hanging process.

@luzpaz
Copy link

luzpaz commented Aug 18, 2018

Related to #92

@dregad
Copy link
Member

dregad commented Aug 21, 2018

There are a lot of issues and things that can be improved with the full import process. Performance is one of them, but not the main problem IMO.

Ideally it should run as a background server process, and the GUI would simply query an API to report progress.

As for the slowness, bear in mind that for each individual changeset, the script is calling the Gitlab webservice to retrieve the commit's data, process it and then go through all the parents.

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

No branches or pull requests

4 participants