Skip to content

Fixed code for indexer#1111

Merged
cmpich merged 1 commit intostagefrom
fix_indexer
Sep 15, 2023
Merged

Fixed code for indexer#1111
cmpich merged 1 commit intostagefrom
fix_indexer

Conversation

@oblodgett
Copy link
Copy Markdown
Member

No description provided.

@oblodgett oblodgett requested review from cmpich and markquintontulloch and removed request for markquintontulloch September 14, 2023 20:44
}

private static boolean hasValidAlleles(AlleleDiseaseAnnotation da) {
List<String> alleleIds = (new AlleleRepository()).getAllAlleleIDs();
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@cmpich Repositories HAVE to be closed otherwise the indexer / cacher hangs.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is due to a persistent connection to Neo.


public List<String> getAllAlleleIDs() {
if (allAlleleIDs != null)
return null;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@cmpich the logic here should have been: if (allAlleleIDs != null) return allAlleleIDs;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Plus there is no need to cache these as they should only get called a few times.

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.

But I don't think this causes too much memory strain on the indexer. This will increase the timing of the indexer.

}
return list;
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

removed unused code.

@cmpich cmpich merged commit a0508c8 into stage Sep 15, 2023
@cmpich cmpich deleted the fix_indexer branch September 15, 2023 11:12
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