{
  "id": "bbg-p0202-database-performance-indexing-database-performance",
  "title": "SQL Query Execution Pipeline",
  "chapter": "database-performance-indexing",
  "batch": "21",
  "rank": 208,
  "sourcePage": 202,
  "sourcePointer": "p. 202",
  "status": "accepted",
  "reviewerStatus": "reviewed",
  "fidelityScore": 0.9,
  "canvas": {
    "width": 960,
    "height": 640
  },
  "fireworksTechGraph": {
    "style": "style-1-flat-icon",
    "diagramType": "flowchart",
    "topologyNotes": [
      "source page render inspected",
      "extracted page text inspected",
      "source page render inspected",
      "preserve execution path: client query, transport/auth checks, query parser and optimizer, execution engine, storage engine and transaction/lock/buffer/recovery managers",
      "omit copied SQL literal and source decorative styling"
    ],
    "publicBoundary": [
      "original vector output",
      "no source pixels",
      "no source mark or long wording"
    ]
  },
  "callouts": [],
  "sourceReview": {
    "conceptAnchors": [
      "concept: transport subsystem",
      "concept: authentication authorization",
      "concept: parser and optimizer",
      "concept: execution engine",
      "concept: storage engine managers"
    ],
    "labelSource": "curated",
    "semanticStatus": "reviewed"
  },
  "groups": [
    {
      "id": "front",
      "label": "Connection and planning",
      "x": 58,
      "y": 118,
      "w": 844,
      "h": 214
    },
    {
      "id": "engine",
      "label": "Execution and storage",
      "x": 58,
      "y": 382,
      "w": 844,
      "h": 130
    }
  ],
  "shapes": [
    {
      "id": "client",
      "kind": "actor",
      "label": "Client",
      "detail": "SQL string",
      "x": 92,
      "y": 156,
      "w": 82,
      "h": 86,
      "tone": "blue"
    },
    {
      "id": "transport",
      "kind": "rect",
      "label": "Transport",
      "detail": "connect auth",
      "x": 242,
      "y": 168,
      "w": 124,
      "h": 58,
      "tone": "blue"
    },
    {
      "id": "processor",
      "kind": "gateway",
      "label": "Query processor",
      "detail": "parse optimize",
      "x": 430,
      "y": 154,
      "w": 132,
      "h": 84,
      "tone": "purple"
    },
    {
      "id": "tree",
      "kind": "table",
      "label": "Parse tree",
      "detail": "validated",
      "x": 650,
      "y": 140,
      "w": 132,
      "h": 86,
      "tone": "teal"
    },
    {
      "id": "plan",
      "kind": "rect",
      "label": "Execution plan",
      "detail": "indexes rows",
      "x": 650,
      "y": 260,
      "w": 132,
      "h": 58,
      "tone": "green"
    },
    {
      "id": "executor",
      "kind": "rect",
      "label": "Execution engine",
      "detail": "run plan",
      "x": 244,
      "y": 420,
      "w": 136,
      "h": 58,
      "tone": "orange"
    },
    {
      "id": "storage",
      "kind": "cylinder",
      "label": "Storage engine",
      "detail": "pages rows",
      "x": 498,
      "y": 406,
      "w": 132,
      "h": 80,
      "tone": "green"
    },
    {
      "id": "managers",
      "kind": "rect",
      "label": "DB managers",
      "detail": "txn locks buffer recovery",
      "x": 714,
      "y": 420,
      "w": 138,
      "h": 58,
      "tone": "gray"
    }
  ],
  "connectors": [
    {
      "from": "client",
      "to": "transport",
      "label": "query",
      "flow": "main"
    },
    {
      "from": "transport",
      "to": "processor",
      "label": "authorized",
      "flow": "control"
    },
    {
      "from": "processor",
      "to": "tree",
      "label": "parse",
      "flow": "data"
    },
    {
      "from": "tree",
      "to": "plan",
      "label": "optimize",
      "flow": "control"
    },
    {
      "from": "plan",
      "to": "executor",
      "label": "execute",
      "flow": "main"
    },
    {
      "from": "executor",
      "to": "storage",
      "label": "read rows",
      "flow": "data"
    },
    {
      "from": "storage",
      "to": "managers",
      "label": "coordinate",
      "flow": "control"
    },
    {
      "from": "storage",
      "to": "client",
      "label": "result",
      "flow": "data",
      "dashed": true
    }
  ]
}
