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

GEt-jiraissue is slow #12

Closed
luc-pitipuis opened this issue Dec 4, 2015 · 1 comment
Closed

GEt-jiraissue is slow #12

luc-pitipuis opened this issue Dec 4, 2015 · 1 comment

Comments

@luc-pitipuis
Copy link

Our JIRA has a lot of custom fields (800 for each ticket...) so it takes 10 seconds to retrieve one ticket.

I tracked down the issue, and the issue is in the function converting the result from the request to a jiraissue object. Please find enclosed a patch that accelerated greatly the speed of the function
patch.diff.convertjiraissue.txt

you may be able to reuse similar code at other places.

replicaJunction added a commit that referenced this issue Dec 4, 2015
Also significantly rewrote the tests for ConvertTo-JiraIssue. This optimization change and the underlying test changes should be applied to the other ConvertTo-Jira* functions.
@replicaJunction
Copy link
Collaborator

Cool. Thanks for that code! I don't have nearly that many custom fields in my instance, so performance had never been an issue.

I've implemented your changes in the latest commit to the dev branch. Give that a try, and if it works as expected, I'll implement that change in several other places around the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants