I wrote a Groovy script that delete all projects, except the ones who are in an exclusion list (to build a sandbox).
Tried it on my local Jira installation, works fine. But on our staging server, which have more than 1500 projects, it's slow as hell. Deleting projects with projectService.deleteProject takes a minute per project!
Tried to find why, and saw this:
Which have a similar script, but the author mentions that he delete the indices before deleting the projects. Tried that, sadly it's still very slow (20 deleted projects in 10 minutes).
I guess deleting projects directly in the bd, while Jira is down of course, will be faster, but I'm pretty sure it will create havoc.
Anyone have seen this problem.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events