Data partitioning method and apparatus

Embodiments of the invention provide a data partitioning method and apparatus. The method comprises: determining tuple relationship information according to received structure information of a mixed load and a database; determining tuple division cost information according to a characteristic indicating whether the mixed load can be parallelly executed and according to the tuple relationship information; and obtaining multiple partitioning solutions according to the tuple division cost information, and determining a partition solution with minimal total cost in the partitioning solutions as an optimal partitioning solution, so as to partition data stored in the database. In the data partitioning method and apparatus, optimal partitioning is performed on data which is in a database and related to a mixed load according to a characteristic indicating whether the mixed load can be parallelly executed; the partitioned data combines characteristics of an affair type load and an analytic load in the mixed load, so that when different loads access data in a database system, the loads can obtain a higher access efficiency, thereby improving working performance of the database system oriented to the mixed load.