[PR #251] [MERGED] optimize (db): add db pool config #402

Closed
opened 2026-02-16 01:15:51 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/251
Author: @quicksandznzn
Created: 4/27/2025
Status: Merged
Merged: 4/30/2025
Merged by: @Yeuoly

Base: mainHead: add-db-pool-configs


📝 Commits (1)

  • 30f91e3 optimize (db): add db pool config

📊 Changes

5 files changed (+26 additions, -5 deletions)

View changed files

📝 .env.example (+4 -0)
📝 internal/db/init.go (+6 -0)
📝 internal/db/mysql/mysql.go (+5 -2)
📝 internal/db/pg/pg.go (+6 -3)
📝 internal/types/app/config.go (+5 -0)

📄 Description

  1. add db pool config
  2. set default value
DB_MAX_IDLE_CONNS=10
DB_MAX_OPEN_CONNS=30
DB_CONN_MAX_LIFETIME=3600

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/251 **Author:** [@quicksandznzn](https://github.com/quicksandznzn) **Created:** 4/27/2025 **Status:** ✅ Merged **Merged:** 4/30/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `add-db-pool-configs` --- ### 📝 Commits (1) - [`30f91e3`](https://github.com/langgenius/dify-plugin-daemon/commit/30f91e3a4b691fcccc2de064c6d031fc40b68f00) optimize (db): add db pool config ### 📊 Changes **5 files changed** (+26 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+4 -0) 📝 `internal/db/init.go` (+6 -0) 📝 `internal/db/mysql/mysql.go` (+5 -2) 📝 `internal/db/pg/pg.go` (+6 -3) 📝 `internal/types/app/config.go` (+5 -0) </details> ### 📄 Description 1. add db pool config 2. set default value ``` DB_MAX_IDLE_CONNS=10 DB_MAX_OPEN_CONNS=30 DB_CONN_MAX_LIFETIME=3600 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:51 -05:00
yindo closed this issue 2026-02-16 01:15:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#402