Skip to content

Optimize vector store pagination for large datasets #17

@coderabbitai

Description

@coderabbitai

Description

The current implementation in ovos_persona_server/vector_stores.py (around lines 225-229) fetches all vector stores into memory before applying pagination logic. This approach is inefficient for large datasets.

Suggested Improvement

Implement database-level pagination using one of the following approaches:

  • LIMIT/OFFSET pagination
  • Cursor-based pagination

This will ensure only the required subset of records is fetched directly from the database, improving performance and memory efficiency.

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions