mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-10 19:44:23 +01:00
- add cursor-based pagination to getListAgentsByAccess and update handler
- add index on updatedAt and _id in agent schema for improved query performance
This commit is contained in:
parent
e97444a863
commit
25b97ba388
3 changed files with 81 additions and 34 deletions
|
|
@ -98,4 +98,6 @@ const agentSchema = new Schema<IAgent>(
|
|||
},
|
||||
);
|
||||
|
||||
agentSchema.index({ updatedAt: -1, _id: 1 });
|
||||
|
||||
export default agentSchema;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue