在oracle中,我们可以创建一个表并插入数据并使用parallel选项进行选择.
mysql中有没有类似的选项.我正在从oracle迁移到mysql,我的系统有更多选择和更少的数据更改,因此任何选择并行选择是我正在寻找的.
例如:让我们考虑我的表有100万行,如果我使用并行(5)选项,那么五个线程运行相同的查询限制并获取大约200K每个,最后的结果我在平常时间的1/5获得100万条记录.
在 IRIS 数据集中。
library("party")
set.seed(1)
x <- ctree(Species ~ ., data=iris)
print(x)
# Conditional inference tree with 4 terminal nodes
#
# Response: Species
# Inputs: Sepal.Length, Sepal.Width, Petal.Length, Petal.Width
# Number of observations: 150
#
# 1) Petal.Length <= 1.9; criterion = 1, statistic = 140.264
# 2)* weights = 50
# 1) Petal.Length > 1.9
# 3) Petal.Width <= 1.7; criterion = 1, statistic = 67.894
# 4) Petal.Length <= 4.8; criterion = 0.999, statistic = 13.865
# …Run Code Online (Sandbox Code Playgroud)