Skip to content

Feature/36735/oxford slowness#104

Merged
shilpigoeldev merged 2 commits into
developfrom
feature/36735/oxford_slowness
Aug 14, 2024
Merged

Feature/36735/oxford slowness#104
shilpigoeldev merged 2 commits into
developfrom
feature/36735/oxford_slowness

Conversation

@shilpigoeldev

Copy link
Copy Markdown
Contributor

What?

Oxford's scripts were too slow and taking hours to finish up , making it hard to bring any changes as everytime a lot of developer's time was going in executing it. More details on planio - 36735

Why?

For every record coming , check was being made if the file it belongs to is relevant to process under current handler or not.

How?

I have checked on first incoming record , if the file should be processed or not and return early if its not to be processed rather checking everytime for each record.

Testing ?

Locally tested via timing the script and here are the changes in timings -

Old -
BRCA script finishes at - Total time taken - 0 hours, 55 minutes, and 51 seconds.
CRC script finishes at - Total time taken - 0 hours, 40 minutes, and 19 seconds.

New times -
CRC - Total time taken - 0 hours, 10 minutes, and 38 seconds.
BRCA - Total time taken - 0 hours, 11 minutes, and 19 seconds.

Also compared the counts before and after changes and they stay the same.

varpath = VAR_PATH_CLASS_MAP[varpathclass]
end
genocolorectal.add_variant_class(varpath)
genocolorectal.add_variant_class(varpath) if varpath.present?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this supposed to be part of this ticket?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No @lauramccluskey1 , but I noticed a lot of time in logs this string being logged " Bad variant class string given: ; cannot proces" unnecessary consuming time ..so fixed it too..

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok that makes sense

@lauramccluskey1

Copy link
Copy Markdown
Contributor

The code changes all look good to me. I mentioned the checks failing, but these ones can be ignored as they are not related. So I'm happy to approve.

@shilpigoeldev shilpigoeldev merged commit 3409a9c into develop Aug 14, 2024
@shilpigoeldev shilpigoeldev deleted the feature/36735/oxford_slowness branch August 14, 2024 14:08
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

Successfully merging this pull request may close these issues.

2 participants