-
公开(公告)号:US20250021531A1
公开(公告)日:2025-01-16
申请号:US18900853
申请日:2024-09-29
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Ji Sun , Shifu Li , Shujie Zhang , Guoliang Li
Abstract: A cardinality estimation method and an apparatus are provided. The method includes: selecting a target model type from a plurality of model types based on a target distribution feature and mapping relationship information, where the mapping relationship information includes a mapping relationship between the plurality of model types and a predicted distribution feature, and the target distribution feature is extracted from sample data collected based on an analysis instruction; and obtaining, based on the target model type, a target model corresponding to the target model type, where the target model is used to perform cardinality estimation on a query instruction of a database.