摘要 |
Embodiments of the present invention disclose a data scanning method and apparatus, where the method includes: analyzing a data scanning condition carried in a received data scanning request, and determining at least one target data partition used to store data; acquiring a scanning cost of the target data partition, where the scanning cost includes waiting time of data scanning; and allocating the target data partition to a processing resource according to the scanning cost, so as to execute parallel data scanning, and acquiring a scanning result returned by the processing resource. In the present invention, statistics information of a data partition is collected, a scanning cost is acquired, and a target-data-partition operation group is appropriately allocated to a processing resource, thereby shortening waiting time of the whole data scanning. |