{
  "id": "redis/redisgraph-query-timeout",
  "signature": "ERR Error executing GRAPH.QUERY: Query timed out after 10000 ms",
  "signature_zh": "ERR 执行 GRAPH.QUERY 时出错：查询在 10000 毫秒后超时",
  "regex": "ERR Error executing GRAPH\\.QUERY: Query timed out after \\d+ ms",
  "domain": "redis",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A RedisGraph query exceeded the configured timeout limit due to complex graph traversal, large result sets, or inefficient Cypher queries.",
  "root_cause_type": "generic",
  "root_cause_zh": "由于复杂的图遍历、大型结果集或低效的 Cypher 查询，RedisGraph 查询超过了配置的超时限制。",
  "versions": [
    {
      "version": "RedisGraph 2.10.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Redis Stack 7.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "RedisGraph 2.12.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Increasing the timeout globally via GRAPH.CONFIG SET TIMEOUT may allow slow queries to run but can cause resource exhaustion or block other operations.",
      "fail_rate": 0.65,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Removing all indexes to speed up writes actually slows down graph queries, making the timeout worse.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Restarting Redis clears the query cache but doesn't optimize the underlying query pattern, so the timeout will recur.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Optimize the Cypher query by adding indexes on frequently filtered properties: GRAPH.QUERY mygraph 'CREATE INDEX ON :Person(age)', then rewrite queries to use indexed properties in WHERE clauses.",
      "success_rate": 0.8,
      "how": "Optimize the Cypher query by adding indexes on frequently filtered properties: GRAPH.QUERY mygraph 'CREATE INDEX ON :Person(age)', then rewrite queries to use indexed properties in WHERE clauses.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use query profiling with GRAPH.EXPLAIN to identify bottlenecks, then break complex queries into smaller steps or use LIMIT to reduce result set size.",
      "success_rate": 0.75,
      "how": "Use query profiling with GRAPH.EXPLAIN to identify bottlenecks, then break complex queries into smaller steps or use LIMIT to reduce result set size.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase the timeout for specific queries by setting a higher TIMEOUT value in the GRAPH.QUERY command, e.g., GRAPH.QUERY mygraph 'MATCH ...' --timeout 30000.",
      "success_rate": 0.7,
      "how": "Increase the timeout for specific queries by setting a higher TIMEOUT value in the GRAPH.QUERY command, e.g., GRAPH.QUERY mygraph 'MATCH ...' --timeout 30000.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "通过添加索引优化 Cypher 查询：GRAPH.QUERY mygraph 'CREATE INDEX ON :Person(age)'，然后重写查询以在 WHERE 子句中使用索引属性。",
    "使用 GRAPH.EXPLAIN 进行查询分析以识别瓶颈，然后将复杂查询分解为更小的步骤或使用 LIMIT 减少结果集大小。",
    "通过在 GRAPH.QUERY 命令中设置更高的 TIMEOUT 值来增加特定查询的超时，例如：GRAPH.QUERY mygraph 'MATCH ...' --timeout 30000。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://redis.io/docs/latest/commands/graph.query/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.75,
  "resolvable": "partial",
  "first_seen": "2024-05-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}