irene-coming / benchmarksql_mysql Goto Github PK
View Code? Open in Web Editor NEWchange benchmarksql to support mysql and dble
change benchmarksql to support mysql and dble
Hi,在 TPC-C 模型中的关联查询,可能需要涉及绑定表。
使用 DBLE 的版本为 Release 3.21.10.1
以下为大概的配置。
sharding.xml
<?xml version="1.0"?>
<dble:sharding xmlns:dble="http://dble.cloud/" version="4.0">
<schema name="dble">
<singleTable name="bmsql_config" shardingNode="dn1" />
<shardingTable name="bmsql_warehouse" shardingNode="dn$1-2" function="hash-sysbench" shardingColumn="w_id">
<childTable name="bmsql_customer" joinColumn="c_w_id" parentColumn="w_id"/>
</shardingTable>
<shardingTable name="bmsql_district" shardingNode="dn$1-2" function="hash-sysbench" shardingColumn="d_w_id">
<childTable name="bmsql_stock" joinColumn="s_w_id" parentColumn="d_w_id"/>
<childTable name="bmsql_order_line" joinColumn="ol_w_id" parentColumn="d_w_id"/>
</shardingTable>
<shardingTable name="bmsql_customer" shardingNode="dn$1-2" function="hash-sysbench" shardingColumn="c_w_id">
<childTable name="bmsql_warehouse" joinColumn="w_id" parentColumn="c_w_id"/>
</shardingTable>
<shardingTable name="bmsql_item" shardingNode="dn$1-2" function="hash-sysbench" shardingColumn="i_id" />
<shardingTable name="bmsql_history" shardingNode="dn$1-2" function="hash-sysbench" shardingColumn="h_w_id" />
<shardingTable name="bmsql_oorder" shardingNode="dn$1-2" function="hash-sysbench" shardingColumn="o_w_id" />
<shardingTable name="bmsql_stock" shardingNode="dn$1-2" function="hash-sysbench" shardingColumn="s_w_id">
<childTable name="bmsql_order_line" joinColumn="ol_w_id" parentColumn="s_w_id"/>
<childTable name="bmsql_district" joinColumn="d_w_id" parentColumn="s_w_id"/>
</shardingTable>
<shardingTable name="bmsql_new_order" shardingNode="dn$1-2" function="hash-sysbench" shardingColumn="no_w_id" />
<shardingTable name="bmsql_order_line" shardingNode="dn$1-2" function="hash-sysbench" shardingColumn="ol_w_id">
<childTable name="bmsql_stock" joinColumn="s_w_id" parentColumn="ol_w_id"/>
<childTable name="bmsql_district" joinColumn="d_w_id" parentColumn="ol_w_id"/>
</shardingTable>
</schema>
<shardingNode name="dn1" dbGroup="host_1" database="dble" />
<shardingNode name="dn2" dbGroup="host_2" database="dble" />
<function name="hash-sysbench" class="Hash">
<property name="partitionCount">2</property>
<property name="partitionLength">1</property>
</function>
</dble:sharding>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.