[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-760750-105":59,"doc-detail-760750-en":130,"doc-similar-760750":206},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","machine-learning-for-query-optimization","Machine Learning for Query Optimization","","Data has grown rapidly, making storage, processing, and analytics systems mission-critical. At the core is the query optimizer, which converts high-level declarative queries such as SQL into efficient execution plans, yet optimization is difficult for two reasons: reliance on hand-designed heuristics and high development costs. This dissertation applies machine learning to address both issues by improving cardinality estimation and enabling reinforcement-learning-based SQL optimization. It introduces Naru and NeuroCard for accurate, heuristic-free estimation, and Balsa for learned trial-and-error query optimization.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/machine-learning-for-query-optimization/760750/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/machine-learning-for-query-optimization/760750.png","ImageObject",300,407,{"name":92,"@type":93},"River Wang","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-11-28",true,{"@type":102,"interactionType":103,"userInteractionCount":8},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the main problem addressed in the dissertation?","Question",{"text":112,"@type":113},"The dissertation tackles the complexity of query optimization, focusing on improving both cardinality estimation and the process of optimizing SQL queries.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does Naru improve cardinality estimation?",{"text":117,"@type":113},"Naru uses self-supervised learning to model the joint data distribution of tables without heuristic assumptions, significantly improving estimation accuracy.",{"name":119,"@type":110,"acceptedAnswer":120},"What is Balsa and what does it learn?",{"text":121,"@type":113},"Balsa is a deep reinforcement learning agent that learns to optimize SQL queries through trial-and-error, aiming to outperform existing database optimizers after limited learning time.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},760750,1795908973,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":145,"preview_urls":146},1099514067438,"https://ap-avatar.wpscdn.com/avatar/100002539ee87300030?x-image-process=image/resize,m_fixed,w_180,h_180&k=1780474512215547542","Machine Learning for Query Optimization  \nZongheng Yang  \nElectrical Engineering and Computer Sciences University of California, Berkeley  \nTechnical Report No. UCB/EECS-2022-194  \n[http://www2.eecs.berkeley.edu/Pubs/TechRpts/2022/EECS-2022-194.html](http://www2.eecs.berkeley.edu/Pubs/TechRpts/2022/EECS-2022-194.html)[ ](http://www2.eecs.berkeley.edu/Pubs/TechRpts/2022/EECS-2022-194.html)August 11, 2022  \nCopyright © 2022, by the author(s) .  \nAll rights reserved.  \nPermission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, torepublish, to post on servers or to redistribute to lists, requires prior specific permission.  \nMachine Learning for Query Optimization  \nby  \nZongheng Yang  \nA dissertation submitted in partial satisfaction of the requirements for the degree of Doctor of Philosophy in Computer Science in the Graduate Division  \nof the  \nUniversity of California, Berkeley  \nCommittee in charge:  \nProfessor Ion Stoica, Chair Professor Joseph M. Hellerstein Professor Pieter Abbeel Assistant Professor Sanjay Krishnan  \nSummer 2022  \nMachine Learning for Query Optimization  \nCopyright 2022  \nby Zongheng Yang  \n1  \nAbstract  \nMachine Learning for Query Optimization  \nby  \nZongheng Yang  \nDoctor of Philosophy in Computer Science  \nUniversity of California, Berkeley  \nProfessor Ion Stoica, Chair  \nData has been growing at an unprecedented rate in the past two decades. As a result, systems that store, process, and analyze data have become mission-critical. Crucial to the performance of data systems is the query optimizer, which translates high-level declarative queries (e.g., SQL) into e􀀎cient execution plans. However, query optimization is highly complex, leading to two key challenges. First, optimizers use a myriad of hand-designed heuristics to tame the complexity, but heuristics leave performance on the table. Second, optimizers are highly costly to develop, where human experts may spend months writing a 􀀌rst version and years re􀀌ning it.  \nThis dissertation applies and enhances machine learning advances to tame the complexity in query optimization. First, we remove for the 􀀌rst time decades-old and accuracy-impacting heuristics in cardinality estimation|the Achilles' heel of optimizers where heuristics particularly abound|thereby signi􀀌cantly improving estimation accuracy. We present Naru and NeuroCard, two cardinality estimators based on self-supervised learning advances that learn the joint data distribution of tables without any heuristic assumptions. Our estimators improve the accuracy of cardinality estimation by orders of magnitude compared to the prior state of the art. Second, we show that automatically learning to optimize SQL queries, without learning from an expert-designed optimizer, is both possible and e􀀎cient, thereby potentially alleviating the high development cost. We introduce Balsa, a deep reinforcement learning agent that automatically learns to optimize SQL queries by trial-and-error. Balsacan learn to outperform the optimizers of PostgreSQL|one of the most popular database systems|and a commercial database engine with a few hours of learning.  \nOverall, by enhancing machine learning advances with new, carefully designed systems and ML techniques, this line of work improves existing query optimizers, while opening the possibility of alleviating the complex optimization in future environments and engines.  \ni  \nTo my family  \nii  \nContents  \nContents ii  \nList of Figures v  \nList of Tables viii  \nAcknowledgments x  \n1 Introduction 1  \n1.1 Challenges in Query Optimization ........................ 2  \n1.2 Machine Learning for Query Optimization ................... 3  \n2 Background 7  \n2.1 Query Optimization ................................ 7  \n2.2 Machine Learning Adva","cbCaivzIod36YlZb","https://ap.wps.com/l/cbCaivzIod36YlZb","pdf",2978117,135,"English","# Abstract\n## Challenges in Query Optimization\n## Machine Learning for Query Optimization\n## Background\n## Naru: Deep Unsupervised Cardinality Estimation\n## NeuroCard: Extending Naru to Joins\n## Contents","[{\"question\":\"What is the main problem addressed in the dissertation?\",\"answer\":\"The dissertation tackles the complexity of query optimization, focusing on improving both cardinality estimation and the process of optimizing SQL queries.\"},{\"question\":\"How does Naru improve cardinality estimation?\",\"answer\":\"Naru uses self-supervised learning to model the joint data distribution of tables without heuristic assumptions, significantly improving estimation accuracy.\"},{\"question\":\"What is Balsa and what does it learn?\",\"answer\":\"Balsa is a deep reinforcement learning agent that learns to optimize SQL queries through trial-and-error, aiming to outperform existing database optimizers after limited learning time.\"}]","Machine Learning for Query Optimization | PDF",340,14,[147,151,155,159,163,167,171,175,179,183,187,192,197,202],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/16aa21b0ba21ff1f34ba304df56aef8d.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/8f013271d91e6751f916aedb980ef123.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/61f2cace4645032376b1992d1d9fb653.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/69edf006951cda17a0c1fbdacefcaf40.webp",980,1268,{"page_no":24,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/2dcdcdfb80afc576396cec1ff1984451.webp",979,1267,{"page_no":29,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/517349be00519e743fae9c392f97d0cf.webp",978,1265,{"page_no":34,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/e680440a4f470f59d5e7300aa95821ed.webp",977,1264,{"page_no":39,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/a5b81aa5dbd67d510d296e461eb707dc.webp",976,1263,{"page_no":44,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/8dfa2c0fb7ac9751ee396b0fa0372abb.webp",975,1261,{"page_no":52,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/ff5d801dc4a8c6bf1c2925d885c98ae1.webp",974,1260,{"page_no":188,"url":189,"width":190,"height":191},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/af8f76fa259fcbe6d47e3c3463cda45b.webp",973,1259,{"page_no":193,"url":194,"width":195,"height":196},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/61486e22ce14d416c44ed209deeb9f05.webp",972,1257,{"page_no":198,"url":199,"width":200,"height":201},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/2e7eebd11e5caa4f4e289745a823f95e.webp",971,1256,{"page_no":145,"url":203,"width":204,"height":205},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/1c5b47379d82500d49df6309381ae90d.webp",970,1255,{"list":207,"token":66},[208,215,222,228,235,242,249,256,262,268],{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":213,"category_name":40,"create_tm":214},123443,"Advances and Challenges in Machine Learning-Based Cardinality Estimation for Database Query Optimization","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229837016190/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=SofHGe1d%2FPwnkMQS%2FHrnSn9T6YY%3D","advances-and-challenges-in-machine-learning-based-cardinality-estimation-for-database-query-optimization",22,1785816547,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":220,"category_name":40,"create_tm":221},84701,"TabQueryBench：面向合成表格数据的以查询为中心基准","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809197450/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=W71OwsKIGZ1baQpnlIsT7%2BmiiA0%3D","tabquerybench-a-query-centric-benchmark-for-synthetic-tabular-data",31,1784197736,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":44,"category_name":40,"create_tm":227},656143,"Star-schema join support within DB2 for i - Abstract and Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974785932/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=E0syAccblUxeQLTo8Mpa3me54aU%3D","star-schema-join-support-within-db2-for-i-abstract-and-overview",1792966698,{"doc_id":229,"doc_title":230,"file_type":137,"home_preview_img_url":231,"slug":232,"view_count":233,"category_name":40,"create_tm":234},84862,"BaCon: Efficient Batch Processing of Counting Queries","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809213849/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=wgKWHFqLMo4piT4FlEZ5SB4LNB0%3D","bacon-efficient-batch-processing-of-counting-queries",26,1784198890,{"doc_id":236,"doc_title":237,"file_type":137,"home_preview_img_url":238,"slug":239,"view_count":240,"category_name":40,"create_tm":241},83091,"ExplAIner: A Declarative Query Language for Explaining Classification Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808821567/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=HT2Lag5sEpV3g2wjsUYIHzV8K8o%3D","explainer-a-declarative-query-language-for-explaining-classification-models",27,1784185148,{"doc_id":243,"doc_title":244,"file_type":137,"home_preview_img_url":245,"slug":246,"view_count":247,"category_name":40,"create_tm":248},326488,"Heuristics and Optimization for Knowledge Discovery","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909053353/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=IoLJF%2BG63BWXQjmce%2FDls%2BtEVl0%3D","heuristics-and-optimization-for-knowledge-discovery",15,1789974317,{"doc_id":250,"doc_title":251,"file_type":137,"home_preview_img_url":252,"slug":253,"view_count":254,"category_name":40,"create_tm":255},84667,"Selectivity Estimation for Linear Queries via Online Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809195484/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=PzyKuo1aXgxt2MKS4B%2BqXOU%2BcrY%3D","selectivity-estimation-for-linear-queries-via-online-learning",34,1784197568,{"doc_id":257,"doc_title":258,"file_type":137,"home_preview_img_url":259,"slug":260,"view_count":233,"category_name":40,"create_tm":261},86215,"RefineEvo Planning-Guided Heuristic Evolution with Bidirectional Experience","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809389734/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=j%2FEsJDCgxNWcZKe13JUvdA6moqU%3D","refineevo-planning-guided-heuristic-evolution-with-bidirectional-experience",1784209525,{"doc_id":263,"doc_title":264,"file_type":137,"home_preview_img_url":265,"slug":266,"view_count":188,"category_name":40,"create_tm":267},496376,"ParSEval - Plan-aware Test Database Generation for SQL Equivalence Evaluation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229929827264/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=0o75HcCoPwQKH5h7I6NYhRZcPoU%3D","parseval-plan-aware-test-database-generation-for-sql-equivalence-evaluation",1790931347,{"doc_id":269,"doc_title":270,"file_type":137,"home_preview_img_url":271,"slug":272,"view_count":46,"category_name":40,"create_tm":273},125438,"Combining machine learning and optimization algorithms in 5G networks - Master’s thesis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229838443305/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=2jkpdk4PrZKnvQUQXOuOQtFTugo%3D","combining-machine-learning-and-optimization-algorithms-in-5g-networks-masters-thesis",1785898926]