LightRAG/lightrag
Yasiru Rangana 2f22336ace Optimize PostgreSQL initialization performance
- Batch index existence checks into single query (16+ queries -> 1 query)
- Batch timestamp column checks into single query (8 queries -> 1 query)
- Batch field length checks into single query (5 queries -> 1 query)

Performance improvement: ~70-80% faster initialization (35s -> 5-10s)

Key optimizations:
1. check_tables(): Use ANY($1) to check all indexes at once
2. _migrate_timestamp_columns(): Batch all column type checks
3. _migrate_field_lengths(): Batch all field definition checks

All changes are backward compatible with no schema or API changes.
Reduces database round-trips by batching information_schema queries.
2025-10-21 01:09:48 +11:00
..
api Update Swagger API key status description text 2025-10-18 09:40:44 +08:00
kg Optimize PostgreSQL initialization performance 2025-10-21 01:09:48 +11:00
llm Add offline deployment support with cache management and layered deps 2025-10-11 10:28:14 +08:00
tools Add offline deployment support with cache management and layered deps 2025-10-11 10:28:14 +08:00
__init__.py Bump core version to 1.4.9.4 2025-10-16 11:29:38 +08:00
base.py Add PREPROCESSED (multimodal_processed) status for multimodal document processing 2025-10-14 14:02:05 +08:00
constants.py Remove deprecated history_turns and ids parameters from query API endpoint 2025-09-25 04:58:57 +08:00
exceptions.py
lightrag.py Handle empty query results by returning None instead of fail responses 2025-10-15 12:04:49 +08:00
namespace.py
operate.py Allow related chunks missing in knowledge graph queries 2025-10-17 00:19:30 +08:00
prompt.py Remove bold formatting from instruction headers in prompts 2025-10-02 00:58:03 +08:00
rerank.py
types.py
utils.py Fix tuple delimiter corruption handling in regex patterns 2025-10-17 18:43:45 +08:00
utils_graph.py