langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
35.43k stars 4.22k forks source link

fix: Use AsyncSession in build_graph_from_db #4649

Closed cbornet closed 1 week ago

cbornet commented 1 week ago

Use AsyncSession in build_graph_from_db

codspeed-hq[bot] commented 1 week ago

CodSpeed Performance Report

Merging #4649 will degrade performances by 45.11%

Comparing cbornet:async-session-build-graph (f1c6497) with main (efe6407)

Summary

❌ 2 regressions ✅ 13 untouched benchmarks

:warning: Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main cbornet:async-session-build-graph Change
test_successful_run_with_input_type_any 163.6 ms 298.1 ms -45.11%
test_successful_run_with_output_type_debug 197.1 ms 296.1 ms -33.44%