-
公开(公告)号:US20170255673A1
公开(公告)日:2017-09-07
申请号:US15600199
申请日:2017-05-19
Applicant: Huawei Technologies Co., Ltd.
Inventor: Feng Li , Lei Wang , Yun Zhang , Xiaobing Feng
IPC: G06F17/30
CPC classification number: G06F16/24542 , G06F16/24524 , G06F16/2454
Abstract: A batch data query method and apparatus are provided. According to the method, multiple logical query plan trees corresponding to multiple query statements are obtained. The multiple logical query plan trees are divided into multiple query groups according to operators of each logical query plan tree. Logical query plan trees in each query group have the following relationship: an inter-query write-read dependency relationship, an operator overlap relationship, or an operand overlap relationship. Then, inter-query optimization is performed on the logical query plan trees in each query group, and multiple corresponding physical query plan trees are generated according to the multiple optimized logical query plan trees. Finally, physical queries are executed according to the multiple physical query plan trees, to obtain query results of the multiple query statements.