Is there any way to do some batch operates? #11857

Closed
opened 2025-11-02 09:49:51 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @ltbyun on GitHub (Oct 16, 2023).

Feature Description

I need to migrate from git in microsoft's tfs to gitea.
I need to create hundreds of users, and migrate thousands of repositories.
I can not find any way to do this in batch, the only way is to do one by one, it's a huge task.
why can not import users from excel or other file?
and why can not migrate thousands of repositories with a text of repositories's urls?

Screenshots

No response

Originally created by @ltbyun on GitHub (Oct 16, 2023). ### Feature Description I need to migrate from git in microsoft's tfs to gitea. I need to create hundreds of users, and migrate thousands of repositories. I can not find any way to do this in batch, the only way is to do one by one, it's a huge task. why can not import users from excel or other file? and why can not migrate thousands of repositories with a text of repositories's urls? ### Screenshots _No response_
GiteaMirror added the issue/needs-feedback label 2025-11-02 09:49:51 -06:00
Author
Owner

@delvh commented on GitHub (Oct 16, 2023):

You can write an API script.

@delvh commented on GitHub (Oct 16, 2023): You can write an API script.
Author
Owner

@ltbyun commented on GitHub (Oct 17, 2023):

@delvh yes, it works.
but after i imported 183 repos to admin user, i find it uses more the 2 seconds to open the user's home page.
i opened mysql log_output, and reexecute query sqls, but find none uses more then 10ms, so it maybe occurs in the data resolve logic.
image
image

@ltbyun commented on GitHub (Oct 17, 2023): @delvh yes, it works. but after i imported 183 repos to admin user, i find it uses more the 2 seconds to open the user's home page. i opened mysql log_output, and reexecute query sqls, but find none uses more then 10ms, so it maybe occurs in the data resolve logic. ![image](https://github.com/go-gitea/gitea/assets/38602293/32b6f0d7-3908-4ba5-9d0a-af3eedba34fd) ![image](https://github.com/go-gitea/gitea/assets/38602293/7f8e5562-4473-4185-80c0-d62b5f467a43)
Author
Owner

@lng2020 commented on GitHub (Oct 18, 2023):

Gitea log shows every step's executive time. If you think it's a bug of Gitea's code logic, feel free to paste log and open another issue.

@lng2020 commented on GitHub (Oct 18, 2023): Gitea log shows every step's executive time. If you think it's a bug of Gitea's code logic, feel free to paste log and open another issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11857