perf: increase conversation search batch size
- Increase initial search batch from 100 to 5000 - Increase load more batch from 50 to 200 - Raise backend API limit from 100 to 10000 - Improve search performance for large conversation lists Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
0e4f625338
commit
141f6116fd
@ -95,7 +95,7 @@ def get_conversations(terminal: WebTerminal, workspace: UserWorkspace, username:
|
||||
offset = request.args.get('offset', 0, type=int)
|
||||
|
||||
# 限制参数范围
|
||||
limit = max(1, min(limit, 100)) # 限制在1-100之间
|
||||
limit = max(1, min(limit, 10000)) # 限制在1-10000之间
|
||||
offset = max(0, offset)
|
||||
|
||||
result = terminal.get_conversations_list(limit=limit, offset=offset)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// @ts-nocheck
|
||||
const SEARCH_INITIAL_BATCH = 100;
|
||||
const SEARCH_MORE_BATCH = 50;
|
||||
const SEARCH_INITIAL_BATCH = 5000;
|
||||
const SEARCH_MORE_BATCH = 200;
|
||||
const SEARCH_PREVIEW_LIMIT = 20;
|
||||
|
||||
export const searchMethods = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user