{"title":"Performance","description":"Performance characteristics for Workers, cache behavior, and how we benchmark query latency and cost on the Altertable lakehouse.","order":500,"askSuggestions":["Why is my first query slower than later ones?","How do I check how much data a query scans?","When should I optimize a table's layout?"],"navigation":true,"body":{"code":"var Component=(()=>{var p=Object.create;var c=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var k=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),g=(n,e)=>{for(var o in e)c(n,o,{get:e[o],enumerable:!0})},h=(n,e,o,a)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let t of w(e))!x.call(n,t)&&t!==o&&c(n,t,{get:()=>e[t],enumerable:!(a=f(e,t))||a.enumerable});return n};var b=(n,e,o)=>(o=n!=null?p(y(n)):{},h(e||!n||!n.__esModule?c(o,\"default\",{value:n,enumerable:!0}):o,n)),q=n=>h(c({},\"__esModule\",{value:!0}),n);var l=k((v,d)=>{d.exports=_jsx_runtime});var P={};g(P,{default:()=>m,frontmatter:()=>C});var r=b(l()),C={title:\"Performance\",description:\"Performance characteristics for Workers, cache behavior, and how we benchmark query latency and cost on the Altertable lakehouse.\",order:500,askSuggestions:[\"Why is my first query slower than later ones?\",\"How do I check how much data a query scans?\",\"When should I optimize a table's layout?\"]};function u(n){let e={a:\"a\",h1:\"h1\",h2:\"h2\",li:\"li\",p:\"p\",ul:\"ul\",...n.components},{Card:o,DocsPreviewDocument:a,DocsPreviewSection:t,PerformanceChart:s}=e;return o||i(\"Card\",!0),a||i(\"DocsPreviewDocument\",!0),t||i(\"DocsPreviewSection\",!0),s||i(\"PerformanceChart\",!0),(0,r.jsxs)(a,{anchors:\"performance benchmarking cold-and-cached-queries choose-the-next-optimization\",children:[(0,r.jsxs)(t,{sectionId:\"performance\",sectionTitle:\"Performance\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,r.jsx)(e.h1,{id:\"performance\",children:\"Performance\"}),`\n`,(0,r.jsx)(e.p,{children:\"We regularly test our architecture, infrastructure, and query engine at scale to ensure Altertable delivers consistent performance as your data grows.\"}),`\n`]}),(0,r.jsxs)(t,{sectionId:\"benchmarking\",sectionTitle:\"Benchmarking\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,r.jsx)(e.h2,{id:\"benchmarking\",children:\"Benchmarking\"}),`\n`,(0,r.jsx)(e.p,{children:\"One benchmark we use is TPC-H at scale factor 100. It provides a repeatable workload for query performance comparisons.\"}),`\n`,(0,r.jsx)(e.p,{children:\"Benchmark numbers are directional: real-world performance depends on data shape, storage layout, query mix, and cache warmth.\"}),`\n`,(0,r.jsx)(o,{className:\"mt-8\",children:(0,r.jsx)(s,{})}),`\n`]}),(0,r.jsxs)(t,{sectionId:\"cold-and-cached-queries\",sectionTitle:\"Cold and cached queries\",anchors:\"\",ancestors:\"\",index:\"2\",children:[(0,r.jsx)(e.h2,{id:\"cold-and-cached-queries\",children:\"Cold and cached queries\"}),`\n`,(0,r.jsxs)(e.p,{children:[\"A cold query may need to download data from object storage to the \",(0,r.jsx)(e.a,{href:\"/docs/lakehouse/compute/workers\",children:\"Worker\"}),\" before executing it. Later queries can reuse the Worker\\u2019s local cache, reducing storage reads and latency. Compare queries with similar cache conditions when measuring performance.\"]}),`\n`]}),(0,r.jsxs)(t,{sectionId:\"choose-the-next-optimization\",sectionTitle:\"Choose the next optimization\",anchors:\"\",ancestors:\"\",index:\"3\",children:[(0,r.jsx)(e.h2,{id:\"choose-the-next-optimization\",children:\"Choose the next optimization\"}),`\n`,(0,r.jsx)(e.p,{children:\"Start with the slow query and its scan size:\"}),`\n`,(0,r.jsxs)(e.ul,{children:[`\n`,(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.a,{href:\"/docs/api-references/lakehouse#post-explain\",children:\"Inspect the query\"}),\" to estimate rows, files, and bytes scanned.\"]}),`\n`,(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.a,{href:\"/docs/lakehouse/compute/sizing\",children:\"Choose compute\"}),\" for the workload.\"]}),`\n`,(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.a,{href:\"/docs/lakehouse/features/optimize-table\",children:\"Optimize table layout\"}),\" when file layout or compaction limits performance.\"]}),`\n`]})]})]})}function m(n={}){let{wrapper:e}=n.components||{};return e?(0,r.jsx)(e,{...n,children:(0,r.jsx)(u,{...n})}):u(n)}function i(n,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+n+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return q(P);})();\n;return Component;"},"_id":"docs/lakehouse/compute/performance.mdx","_raw":{"sourceFilePath":"docs/lakehouse/compute/performance.mdx","sourceFileName":"performance.mdx","sourceFileDir":"docs/lakehouse/compute","contentType":"mdx","flattenedPath":"docs/lakehouse/compute/performance"},"type":"Docs","path":"/lakehouse/compute/performance","level":3,"parent":"lakehouse/compute"}