mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-12 14:45:38 -06:00
[PR #17861] [CLOSED] feat: add backend handling for chat import for massive speedup #128235
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/17861
Author: @silentoplayz
Created: 9/28/2025
Status: ❌ Closed
Base:
dev← Head:move-import-chats-to-backend📝 Commits (3)
aa14834feat: implement bulk chat import for massive speedup for chat importsb403e30feat: add toast notification3545d15fix: imported chats in folders📊 Changes
4 files changed (+116 additions, -14 deletions)
View changed files
📝
backend/open_webui/models/chats.py(+45 -0)📝
backend/open_webui/routers/chats.py(+18 -0)📝
src/lib/apis/chats/index.ts(+31 -0)📝
src/lib/components/chat/Settings/DataControls.svelte(+22 -14)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
Added
/chats/import/bulk, to handle the import of multiple chats in a single transaction.import_chats_in_bulk, inbackend/open_webui/models/chats.pyto support efficient bulk database insertion.importChatsInBulk, insrc/lib/apis/chats/index.tsto communicate with the new bulk endpoint.src/lib/components/chat/Settings/DataControls.sveltethat displays the number of chats successfully imported.Changed
importChatsfunction insrc/lib/components/chat/Settings/DataControls.svelteto use the new bulk import API instead of iterating through chats individually.Removed
Fixed
Additional Information
Screenshots or Videos
Time to import many chats previously (MANY REQUESTS, VERY SLOW, NO FEEDBACK):

Time to import many chats with these changes applied (FAR FEWER REQUESTS, SMALLER TRANSFER, MUCH FASTER, FEEDBACK OF SUCCESS):

Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.