Skip to content

Bugfix/Create Index Chatflow Name#5213

Merged
HenryHengZJ merged 1 commit into
mainfrom
bugfix/Create-Index-For-Chatflow-Name
Sep 15, 2025
Merged

Bugfix/Create Index Chatflow Name#5213
HenryHengZJ merged 1 commit into
mainfrom
bugfix/Create-Index-For-Chatflow-Name

Conversation

@HenryHengZJ

@HenryHengZJ HenryHengZJ commented Sep 15, 2025

Copy link
Copy Markdown
Contributor

Refactor index creation for chat_flow name across multiple databases to limit indexed length to 255 characters.

Fix:


2025-09-15 15:32:54 [ERROR]: QueryFailedError: index row size 3448 exceeds btree version 4 maximum 2704 for index "IDX_chatflow_name"

at PostgresQueryRunner.query (/usr/src/node_modules/.pnpm/typeorm@0.3.20_ioredis@5.4.2_mongodb@6.3.0_gcp-metadata@7.0.1_socks@2.8.1__mysql2@3.11._91bb8cebce37e0cf7ba17a39ae30ff6a/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)

at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

at async AddChatFlowNameIndex1755748356008.up (/usr/src/packages/server/dist/database/migrations/postgres/1755748356008-AddChatFlowNameIndex.js:9:9)

at async MigrationExecutor.executePendingMigrations (/usr/src/node_modules/.pnpm/typeorm@0.3.20_ioredis@5.4.2_mongodb@6.3.0_gcp-metadata@7.0.1_socks@2.8.1__mysql2@3.11._91bb8cebce37e0cf7ba17a39ae30ff6a/node_modules/typeorm/migration/MigrationExecutor.js:225:17)

at async DataSource.runMigrations (/usr/src/node_modules/.pnpm/typeorm@0.3.20_ioredis@5.4.2_mongodb@6.3.0_gcp-metadata@7.0.1_socks@2.8.1__mysql2@3.11._91bb8cebce37e0cf7ba17a39ae30ff6a/node_modules/typeorm/data-source/DataSource.js:265:35)

at async Worker.prepareData (/usr/src/packages/server/dist/commands/worker.js:51:9)

at async Worker.run (/usr/src/packages/server/dist/commands/worker.js:19:113)

at async Worker._run (/usr/src/node_modules/.pnpm/@oclif+core@4.0.7/node_modules/@oclif/core/lib/command.js:302:22)

at async Config.runCommand (/usr/src/node_modules/.pnpm/@oclif+core@4.0.7/node_modules/@oclif/core/lib/config/config.js:424:25)

at async Object.run (/usr/src/node_modules/.pnpm/@oclif+core@4.0.7/node_modules/@oclif/core/lib/main.js:94:16)

Migration "AddChatFlowNameIndex1755748356008" failed, error: index row size 3448 exceeds btree version 4 maximum 2704 for index "IDX_chatflow_name"

query failed: CREATE INDEX "IDX_chatflow_name" ON "chat_flow" ("name")

error: error: index row size 3448 exceeds btree version 4 maximum 2704 for index "IDX_chatflow_name"

@HenryHengZJ HenryHengZJ merged commit 05763db into main Sep 15, 2025
2 checks passed
erhhung pushed a commit to erhhung/flowise that referenced this pull request Oct 5, 2025
Refactor index creation for chat_flow name across multiple databases to limit indexed length to 255 characters
erhhung pushed a commit to erhhung/flowise that referenced this pull request Jan 23, 2026
Refactor index creation for chat_flow name across multiple databases to limit indexed length to 255 characters
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.

1 participant