Preprint · 2025 · Open access

Redefining Cost Estimation in Database Systems: The Role of Execution Plan Features and Machine Learning

Utsav Pathak, Amit Mankodi

arXiv · Published 7 October 2025 · DOI 10.48550/arxiv.2510.05612

Open PDFView at the publisherCite this paper

In brief

“Redefining Cost Estimation in Database Systems: The Role of Execution Plan Features and Machine Learning” is a 2025 preprint by Utsav Pathak and Amit Mankodi, published in arXiv. OpenAlex counts 1 citations as of 25 November 2026. It is open access under a CC BY licence: the full text is free to read at arXiv.

Citations
1
Most cited in
2025 (1)
References
18
Authors
2

Abstract

Accurate query runtime prediction is a critical component of effective query optimization in modern database systems. Traditional cost models, such as those used in PostgreSQL, rely on static heuristics that often fail to reflect actual query performance under complex and evolving workloads. This remains an active area of research, with recent work exploring machine learning techniques to replace or augment traditional cost estimators. In this paper, we present a machine learning-based framework for predicting SQL query runtimes using execution plan features extracted from PostgreSQL. Our approach integrates scalar and structural features from execution plans and semantic representations of SQL queries to train predictive models. We construct an automated pipeline for data collection and feature extraction using parameterized TPC-H queries, enabling systematic evaluation of multiple modeling techniques. Unlike prior efforts that focus either on cardinality estimation or on synthetic cost metrics, we model the actual runtimes using fine-grained plan statistics and query embeddings derived from execution traces, to improve the model accuracy. We compare baseline regressors, a refined XGBoost model, and a sequential LSTM-based model to assess their effectiveness in runtime prediction. Our dataset includes over 1000 queries generated from TPC-H query templates executed in PostgreSQL with EXPLAIN ANALYZE. Experimental results show that the XGBoost model significantly outperforms others, achieving a mean squared error of 0.3002 and prediction accuracy within 10% of the true runtime in over 65% of cases. The findings highlight the potential of tree-based learning combined with execution plan features for improving cost estimation in query optimizers.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Pathak, U., & Mankodi, A. (2025). Redefining Cost Estimation in Database Systems: The Role of Execution Plan Features and Machine Learning. arXiv. https://doi.org/10.48550/arxiv.2510.05612

MLA 9

Pathak, Utsav, and Amit Mankodi. “Redefining Cost Estimation in Database Systems: The Role of Execution Plan Features and Machine Learning.” arXiv, 2025. https://doi.org/10.48550/arxiv.2510.05612.

Chicago

Pathak, Utsav and Amit Mankodi. 2025. “Redefining Cost Estimation in Database Systems: The Role of Execution Plan Features and Machine Learning.” arXiv. https://doi.org/10.48550/arxiv.2510.05612.

Harvard

Pathak, U. and Mankodi, A. (2025) ‘Redefining Cost Estimation in Database Systems: The Role of Execution Plan Features and Machine Learning’, arXiv. doi:10.48550/arxiv.2510.05612.

IEEE

U. Pathak and A. Mankodi, “Redefining Cost Estimation in Database Systems: The Role of Execution Plan Features and Machine Learning,” arXiv, 2025, doi: 10.48550/arxiv.2510.05612.

BibTeX

@misc{pathak2025redefining,
  title     = {{Redefining Cost Estimation in Database Systems: The Role of Execution Plan Features and Machine Learning}},
  author    = {Pathak, Utsav and Mankodi, Amit},
  howpublished = {arXiv},
  year      = {2025},
  doi       = {10.48550/arxiv.2510.05612},
  url       = {https://doi.org/10.48550/arxiv.2510.05612}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Physical Sciences › Computer Science › Information Systems › Advanced Database Systems and Queries

  • cost estimation
  • query optimization
  • PostgreSQL
  • TPC-H
  • XGBoost
  • LSTM
  • query embedding
  • cardinality estimation

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Pathak, U., & Mankodi, A. (2025). Redefining Cost Estimation in Database Systems: The Role of Execution Plan Features and Machine Learning. arXiv. https://doi.org/10.48550/arxiv.2510.05612

How many times has this paper been cited?

1 times, according to OpenAlex on 25 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at arXiv: sign in and open the PDF from this page.

Who wrote this paper?

Utsav Pathak, Amit Mankodi.

What is the DOI of this paper?

10.48550/arxiv.2510.05612, permanently at https://doi.org/10.48550/arxiv.2510.05612. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 25 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.