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

[das-atom-db/#199] [HOTFIX] Deep copy atoms in LazyQueryEvaluator #323

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

andre-senna
Copy link
Contributor

@andre-senna andre-senna commented Aug 23, 2024

Related to: singnet/das-atom-db#199

Together with singnet/das-atom-db#200 , this PR moves the deep copy being made in ram_only.get_atom() to inside LazyQueryEvaluator. This is not a proper solution because LazyQueryEvaluator is being called not only with ram_only but also with redis_mongo. But, on the other hand, LazyQueryEvaluator is one of the many classes being refactored in the context of singnet/das#73 so this issue will be revisited with more context information very soon. For now we'll pay the price of degrading performance with this deep copy since it's required in order to make proper implementation of DAS.get_atom() as implemented in #322 and singnet/das-atom-db#196

@andre-senna andre-senna merged commit 06ef390 into master Aug 23, 2024
4 checks passed
@andre-senna andre-senna deleted the senna-db199-1 branch August 23, 2024 13:51
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