Computer Science ›› 2026, Vol. 53 ›› Issue (8): 1-8.doi: 10.11896/jsjkx.250900007

• Database & Big Data & Data Science • Previous Articles     Next Articles

Research on Design of Multi-level SQL Optimization Framework Based on Big Data Business Workflows

SHEN Fengyin1, FAN Hongjie2   

  1. 1 School of Software and Microelectronics, Peking University, Beijing 100871, China
    2 Department of Science and Technology Teaching, China University of Political Science and Law, Beijing 102249, China
  • Received:2025-09-01 Revised:2026-03-13 Online:2026-08-15 Published:2026-08-17
  • About author:SHEN Fengyin,born in 1998,master.His main research interests include big data analytics and database management systems.
    FAN Hongjie,born in 1984,Ph.D,associate professor.His main research in-terests include knowledge graphs,data exchange,and data analysis and mining.
  • Supported by:
    China University of Political Science and Law Research Innovation Project(24KYGH013) and Fundamental Research Funds for the Central Universities.

Abstract: This paper proposes a multi-level SQL optimization framework tailored for business scenarios.By decoupling business logic from general-purpose computation,it establishes a collaborative architecture comprising a front-end rule engine and a back-end execution engine.The front-end SQL optimizer focuses on business-specific optimizations,while the back-end SQL execution engine is dedicated to general big data processing.By encapsulating and integrating existing unified batch-stream proces-sing engines,the framework achieves high computational efficiency.The optimization strategies are systematically divided into two levels:rule-based optimizations oriented toward business characteristics,and general execution optimizations based on the computational framework.This division enhances both modularity and iterability of the optimization strategies.The design and implementation delve into a rule-engine-driven front-end SQL optimizer,which works in conjunction with a general big data execution engine.This synergy enables business-oriented enhancements such as push-down operations for external data sources,consolidation of multiple production tasks,and effectively addresses common practical issues including data skew and code generation limits.Experiments,including external data source push-down tests,multi-task consolidation tests,and data skew load optimization tests,demonstrate performance improvements of 49.8% in field pruning and 79.75% in task merging across multiple real-world scenarios.These results indicate a substantial overall enhancement in the execution performance of big data production tasks.Furthermore,the core design philosophy of decoupling business-specific and general-purpose computation offers an innovative solution for efficient SQL optimization and execution in big data contexts.

Key words: Multi-level SQL optimization, Business rule engine, Query optimizer as a service, External data source pushdown, Data skew mitigation

CLC Number: 

  • TP391.4
[1] UZZAMAN A,JIM M M I,NISHAT N,et al.Optimizing SQL databases for big data workloads:techniques and best practices[J].Academic Journal on Business Administration,Innovation &Sustainability,2024,4(3):15-29.
[2] ZHANG C,LI G L,FENG J H,et al.Survey of Key Techniques of HTAP Databases[J].Journal of Software,2023,34(2):761-785.
[3] HAYAMIZU Y,KAWAMICHI R,OZAWA T,et al.anagodb:Offering Massive Parallelism for Database Engine[C]//Companion of the 2025 International Conference on Management of Data.2025:115-118.
[4] GRAEFE G.The cascades framework for query optimization[J].IEEE Data Engineering Bulletin,1995,18(3):19-29.
[5] SOLIMAN M A,ANTOVA L,RAGHAVAN V,et al.Orca:a modular query optimizer architecture for big data[C]//Procee-dings of the ACM SIGMOD International Conference on Management of Data.2014:337-348.
[6] SIDDIQUI T,JINDAL A,QIAO S,et al.Cost models for big data query processing:Learning,retrofitting,and our findings[C]//Proceedings of the ACM SIGMOD International Confe-rence on Management of Data.2020:99-113.
[7] JINDAL A.Query optimizer as a service:An idea whose timehas come![J].ACM SIGMOD Record,2022,51(3):49-55.
[8] WU P,KANG R,ZHANG T,et al.Data-Agnostic CardinalityLearning from Imperfect Workloads[J].Proceedings of VLDB Endowment,2025,18(8):2519-2532.
[9] DEAN J,GHEMAWAT S.MapReduce:simplified data processing on large clusters[J].Communications of the ACM,2008,51(1):107-113.
[10] THUSOO A,SARMA J S,JAIN N,et al.Hive:a warehousing solution over a map-reduce framework[J].Proceedings of VLDB Endowment,2009,2(2):1626-1629.
[11] SALLOUM S,DAUTOV R,CHEN X,et al.Big data analytics on Apache Spark[J].International Journal of Data Science and Analytics,2016,1(3):145-164.
[12] CHAWLA M,BANIWAL V.Optimization in the catalyst optimizer of Spark SQL[J].Turkish Journal of Electrical Enginee-ring and Computer Sciences,2018,26(5):2489-2499.
[13] CARBONE P,KATSIFODIMOS A,EWEN S,et al.Apacheflink:Stream and batch processing in a single engine[J].The Bulletin of the Technical Committee on Data Engineering,2015,38(4):28-38.
[14] BEGOLI E,CAMACHO-RODRÍGUEZ J,HYDE J,et al.Apache calcite:A foundational framework for optimized query processing over heterogeneous data sources[C]//Proceedings of the 2018 International Conference on Management of Data.2018:221-230.
[15] PROUT A,WANG S P,VICTOR J,et al.Cloud-native transactions and analytics in singlestore[C]//Proceedings of the 2022 International Conference on Management of Data.2022:2340-2352.
[16] PAN Q F,XU C.Advances in SQL Execution Techniques Based on Query Compilation[J].Journal of Computer Research and Development,2024,61(7):1754-1770.
[17] BACON D,BALES N.Spanner:Becoming a SQL system[C]//Proceedings of the ACM International Conference on Management of Data.2017:331-343.
[18] POWER C,PATEL H,JINDAL A,et al.The cosmos big data platform atmicrosoft:Over a decade of progress and a decade to look forward[J].Proceedings of the VLDB Endowment,2021,14(12):3148-3161.
[19] VAVILAPALLI K,MURTHY C.Apache Hadoop yarn:Yetanother resource negotiator[C]//Proceedings of the 4th Annual Symposium on Cloud Computing.2013:1-16.
[20] CHEN J,SHI R.Krypton:real-time serving and analytical SQL engine at ByteDance[J].Proceedings of the VLDB Endowment,2023,16(12):3528-3542.
[21] ALOTAIBI R,TIAN Y,GRAFBERGER S,et al.Towards Query Optimizer as a Service(QOaaS) in a Unified LakeHouse Ecosystem:Can One QO Rule Them All?[J].arXiv:2411.13704,2024.
[1] LIAO Xuechao, ZOU Hang, LYU Peidong, ZENG Zhiqiang. Lithium-ion Battery Capacity Data Augmentation and Prediction Based on Diffusion,Denoise and Coding-Decoding Attention [J]. Computer Science, 2026, 53(8): 103-116.
[2] HU Changyu, FAN Xinyu, ZHANG Zhi, DING Zixu, ZHANG Zhengyue, PENG Juhong. Hierarchical Lightweight Micro-expression Recognition Based on Optical Flow Partitioned FeatureFusion [J]. Computer Science, 2026, 53(8): 174-181.
[3] WANG Yifan, YANG Peixuan, LU Yuansuo, LIU Mengjun. Teacher Trajectory Recognition and Reconstruction in Smart Classrooms via Multi-source Fusion [J]. Computer Science, 2026, 53(8): 191-200.
[4] CHEN Yifan, DING Cong, CAO Min. Image Anomaly Detection Based on Masked Convolutional Kernel [J]. Computer Science, 2026, 53(7): 45-53.
[5] JIAO Hanbing, KANG Junhua, XIAO Teng, DENG Fei. Low-light Image Enhancement Network Based on Multi-level Illumination Excitation and JointLoss Constraint [J]. Computer Science, 2026, 53(7): 62-70.
[6] CHU Chunyu, JIANG Feilong. Water Meter Reading Recognition Based on Deep Learning and Prior Correction [J]. Computer Science, 2026, 53(6A): 250300143-7.
[7] LIU Dai, AN Pengyu, WANG Kai. Improved YOLOv5s-based Algorithm for Emergency Situation Detection in Airport Terminals [J]. Computer Science, 2026, 53(6A): 250300174-7.
[8] WANG Sheng, ZHANG Linghao, ZHANG Juling, PANG Bo, XI Ning, SHE Wenkui. Infrared and Visible Image Homography Estimation for Power Equipment Based on Improved MobileNetV4 [J]. Computer Science, 2026, 53(6A): 250400077-7.
[9] MAO Lihong, TANG Jianjun, CHEN Tong, ZHANG Rui. Aerial Image Object Detection Model Based on Dual-domain Attention and Feature Fusion [J]. Computer Science, 2026, 53(6A): 250600036-7.
[10] CHEN Dianlong, LIU Tengbin, GAO Xiong, TIAN Zijian, ZHU Wenbing, ZOU Shun, WANG Qiang. Defect Detection of Transmission Line Fittings Based on Multiscale Feature Fusion Attention and Cross-layer Aggregation [J]. Computer Science, 2026, 53(6A): 250600110-7.
[11] SHAN Chengcheng, LI Weiting, MEI Chun, ZHAO Hui, QIAN Weixing, ZENG Qinghua. Asynchronous Dynamic Image Stitching Method Based on Parameter-adaptive Grey WolfOptimization Algorithm [J]. Computer Science, 2026, 53(6A): 250600169-8.
[12] ZHENG Haibin, LIN Xiuhao, HAN Ye, CHEN Jinyin, LI Beibei. Black-box Physical Adversarial Attack Against Multimodal Object Detector [J]. Computer Science, 2026, 53(6A): 250700023-10.
[13] WANG Haozhao, FU Fangda, WU Yuyi, WANG Luliang, YU Yang, QI Yifan. Research on Lightning Arrester Fault Identification Technology Based on Multi-source Image Fusion [J]. Computer Science, 2026, 53(6A): 250700042-8.
[14] LIU Jikang, HUANG Lei, ZHANG Ke, NIE Jie, WEI Zhiqiang. Object Detection Method Based on Dynamic Feature Fusion [J]. Computer Science, 2026, 53(6): 263-269.
[15] SUN Jing, WANG Yi, CHEN Haiyan. Research on Hierarchical Fountain Codes for Multi-Availability-Zone Cloud Storage [J]. Computer Science, 2026, 53(6): 367-375.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!