Files
Enterprise-Knowledge-Base/migrations/versioned/000012_add_embeddings_kb_id_index.up.sql
T
wizardchen 057cfd9eb0 feat: Enhance FAQ import functionality and UI improvements
- Added support for tracking the status of FAQ import tasks, including progress indicators for ongoing imports.
- Introduced new localization strings for processing tasks and batch operations in multiple languages.
- Updated the FAQ entry manager to display import progress and improved user feedback during the import process.
- Enhanced the KnowledgeBase component to reflect the processing state of knowledge items, improving user experience during document uploads.
- Implemented batch deletion functionality for chunks, streamlining the management of knowledge base content.
2025-11-23 17:32:50 +08:00

16 lines
324 B
PL/PgSQL

-- 000012_add_embeddings_kb_id_index.up.sql
-- Add B-tree index on knowledge_base_id for embeddings table to improve query performance
BEGIN;
-- Create index for knowledge_base_id to optimize filtering queries
CREATE INDEX IF NOT EXISTS idx_embeddings_knowledge_base_id
ON embeddings(knowledge_base_id);
COMMIT;