FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
31.66k stars 16.5k forks source link

Mongodb for Chat history #1622

Closed Ashes47 closed 9 months ago

Ashes47 commented 9 months ago

Describe the bug When using mongodb for chat history. Flowise opens multiple connection and does not close them.

Due to this i have hit now 500+ connection limit on mongoDB.

To Reproduce Steps to reproduce the behavior:

  1. Create any agent with mongodb for memory.
  2. As you use it you will see number of connections increases for every chat but doesn't come down.

Expected behavior I think the ideal behaviour is open one connection and keep resuing it, or atleast close all opened connection.

Screenshots image

Ashes47 commented 9 months ago

https://github.com/FlowiseAI/Flowise/pull/1627. Creating a singleton class for mondodb instance.