[fix] Avoid unnecessary index creation costs

This commit is contained in:
lanceyq
2026-03-30 17:42:47 +08:00
parent d42db0ca33
commit 052c7c19b3
2 changed files with 9 additions and 5 deletions

View File

@@ -151,11 +151,6 @@ async def write(
# Step 3: Save all data to Neo4j database
step_start = time.time()
from app.repositories.neo4j.create_indexes import create_all_indexes
try:
await create_all_indexes()
except Exception as e:
logger.error(f"Error creating indexes: {e}", exc_info=True)
# 添加死锁重试机制
max_retries = 3