Shard-QueryMySQL并行查询引擎
ShardQuery 是一个 MySQL 的分布式并行查询引擎,这是一个 PHP 的类,用来轻松访问分区数据集。
示例代码:
$shard_list = array (
'shard1' => array( 'host'=>'127.0.0.1',
'user'=>'root',
'password'=>'',
'db'=>'test',
'port'=>3306
),
'shard2' => array( 'host'=>'127.0.0.1',
'user'=>'root',
'password'=>'',
'db'=>'test',
'port'=>3307
)
);评论
