Show simple item record

dc.contributor.authorWu, Ziniu
dc.contributor.authorNegi, Parimarjan
dc.contributor.authorAlizadeh, Mohammad
dc.contributor.authorKraska, Tim
dc.contributor.authorMadden, Samuel
dc.date.accessioned2023-06-02T14:02:09Z
dc.date.available2023-06-02T14:02:09Z
dc.date.issued2023-05-30
dc.identifier.issn2836-6573
dc.identifier.urihttps://hdl.handle.net/1721.1/150846
dc.description.abstractCardinality estimation is one of the most fundamental and challenging problems in query optimization. Neither classical nor learning-based methods yield satisfactory performance when estimating the cardinality of the join queries. They either rely on simplified assumptions leading to ineffective cardinality estimates or build large models to understand the complicated data distributions, leading to long planning times and a lack of generalizability across queries. In this paper, we propose a new framework FactorJoin for estimating join queries. FactorJoin combines the idea behind the classical join-histogram method to efficiently handle joins with the learning-based methods to accurately capture attribute correlation. Specifically, FactorJoin scans every table in a DB and builds single-table conditional distributions during an offline preparation phase. When a join query comes, FactorJoin translates it into a factor graph model over the learned distributions to effectively and efficiently estimate its cardinality. Unlike existing learning-based methods, FactorJoin does not need to de-normalize joins upfront or require executed query workloads to train the model. Since it only relies on single-table statistics, FactorJoin has a small space overhead and is extremely easy to train and maintain. In our evaluation, FactorJoin can produce more effective estimates than the previous state-of-the-art learning-based methods, with 40x less estimation latency, 100x smaller model size, and 100x faster training speed at comparable or better accuracy. In addition, FactorJoin can estimate 10,000 sub-plan queries within one second to optimize the query plan, which is very close to the traditional cardinality estimators in commercial DBMS.en_US
dc.publisherACMen_US
dc.relation.isversionofhttps://doi.org/10.1145/3588721en_US
dc.rightsArticle is made available in accordance with the publisher's policy and may be subject to US copyright law. Please refer to the publisher's site for terms of use.en_US
dc.sourceAssociation for Computing Machineryen_US
dc.titleFactorJoin: A New Cardinality Estimation Framework for Join Queriesen_US
dc.typeArticleen_US
dc.identifier.citationWu, Ziniu, Negi, Parimarjan, Alizadeh, Mohammad, Kraska, Tim and Madden, Samuel. 2023. "FactorJoin: A New Cardinality Estimation Framework for Join Queries." Proceedings of the ACM on Management of Data, 1 (1).
dc.contributor.departmentMassachusetts Institute of Technology. Department of Electrical Engineering and Computer Science
dc.contributor.departmentMassachusetts Institute of Technology. Computer Science and Artificial Intelligence Laboratory
dc.relation.journalProceedings of the ACM on Management of Dataen_US
dc.identifier.mitlicensePUBLISHER_POLICY
dc.eprint.versionFinal published versionen_US
dc.type.urihttp://purl.org/eprint/type/JournalArticleen_US
eprint.statushttp://purl.org/eprint/status/PeerRevieweden_US
dc.date.updated2023-06-01T07:47:14Z
dc.language.rfc3066en
dc.rights.holderThe author(s)
dspace.date.submission2023-06-01T07:47:15Z
mit.journal.volume1en_US
mit.journal.issue1en_US
mit.licensePUBLISHER_POLICY
mit.metadata.statusAuthority Work and Publication Information Neededen_US


Files in this item

Thumbnail

This item appears in the following Collection(s)

Show simple item record