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

Fix duplicated calculation of nodes and dependent nodes are not initialized #1834

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

mokeyish
Copy link
Contributor

Same flow graph as #1832

@HenryHengZJ
Copy link
Contributor

@mokeyish the code make sense to avoid re-calculation of node once it has been initialized. However I'd like to double confirm if I can replicate this issue with a chatflow. So far from my testing, I've not come across with a chatflow that has this issue.

Do you have an example chatflow JSON template?

@mokeyish
Copy link
Contributor Author

My chatflow is more complicated, but I can take a screenshot.

图片

@HenryHengZJ
Copy link
Contributor

wow thats quite a complex one! from your chatflow, which nodes were re-calculated?

@mokeyish
Copy link
Contributor Author

The node that did the initialization repeated the calculation. In fact, it went to the database to read the entire configuration, and subsequent nodes will use the configuration it read. Without this PR, it would read many times and be very slow.

@HenryHengZJ HenryHengZJ merged commit e58cf02 into FlowiseAI:main Mar 12, 2024
2 checks passed
@mokeyish mokeyish deleted the patch-4 branch March 12, 2024 06:43
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.

None yet

2 participants