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

Sequence from disk #18

Closed
wants to merge 7 commits into from
Closed

Sequence from disk #18

wants to merge 7 commits into from

Conversation

Chris7
Copy link
Collaborator

@Chris7 Chris7 commented Aug 21, 2024

Support storing sequences on disk instead of in db.

I removed the bio crate in favor of noodles as we are extensively using that elsewhere. I tried a new pattern for making it simpler to expand the Sequence model in the future. I know we discussed the builder/default pattern, and one thing I think may point to the builder being better is it will have fewer copies and less use of to_string.

println!(
"{path_start} {path_end} {start} {end} {contains_start} {contains_end} {overlap}"
);
// println!(
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the reason for commenting this out?

let mut rows = stmt
.query_map((block_id,), |row| Ok((row.get(0)?, row.get(1)?)))
.query_map((block_id,), |row| {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is all going to have to go somewhere else to work with the new edges

Copy link
Collaborator

Choose a reason for hiding this comment

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

@@ -2,19 +2,35 @@ use rusqlite::types::Value;
use rusqlite::{params_from_iter, Connection};
use sha2::{Digest, Sha256};

#[derive(Debug)]
#[derive(Debug, Default)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not bad, I'd say the default params works fairly reasonably

@dkhofer
Copy link
Collaborator

dkhofer commented Aug 26, 2024

Overall looks good, but I'd like to take another look once it's been rebased and updated

@Chris7 Chris7 closed this Aug 28, 2024
@Chris7 Chris7 deleted the sequence-default branch August 28, 2024 15:31
@Chris7
Copy link
Collaborator Author

Chris7 commented Aug 28, 2024

implemented via #24

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