Apache ShardingSphere 5.2.0 Document
as the master table for the entire binding table since it specifies the sharding condition. All routing calculations will use only the policy of the primary table, then the sharding calculations for the by modulo, the order primary key is a sharded field. If there is no sharded field in SQL, full routing will be executed, of which performance is poor. In addition to the support for single‐sharding fields sharding strategy. 3.1. Sharding 23 Apache ShardingSphere document, v5.2.0 Mandatory Sharding routing For the scenario where the sharded field is not determined by SQL but by other external conditions0 码力 | 483 页 | 4.27 MB | 1 年前3Apache ShardingSphere 5.4.1 Document
as the master table for the entire binding table since it specifies the sharding condition. All routing calculations will use only the policy of the primary table, then the sharding calculations for the by modulo, the order primary key is a sharded field. If there is no sharded field in SQL, full routing will be executed, of which performance is poor. In addition to the support for single‐sharding fields operations is the sharding key + sharding algorithm, known as sharding strategy. Mandatory Sharding routing For the scenario where the sharded field is not determined by SQL but by other external conditions0 码力 | 572 页 | 3.73 MB | 1 年前3Apache ShardingSphere v5.5.0 document
as the master table for the entire binding table since it specifies the sharding condition. All routing calculations will use only the policy of the primary table, then the sharding calculations for the by modulo, the order primary key is a sharded field. If there is no sharded field in SQL, full routing will be executed, of which performance is poor. In addition to the support for single‐sharding fields operations is the sharding key + sharding algorithm, known as sharding strategy. Mandatory Sharding routing For the scenario where the sharded field is not determined by SQL but by other external conditions0 码力 | 602 页 | 3.85 MB | 1 年前3Apache ShardingSphere 5.2.1 Document
as the master table for the entire binding table since it specifies the sharding condition. All routing calculations will use only the policy of the primary table, then the sharding calculations for the by modulo, the order primary key is a sharded field. If there is no sharded field in SQL, full routing will be executed, of which performance is poor. In addition to the support for single‐sharding fields sharding strategy. 3.1. Sharding 22 Apache ShardingSphere document, v5.2.1 Mandatory Sharding routing For the scenario where the sharded field is not determined by SQL but by other external conditions0 码力 | 523 页 | 4.51 MB | 1 年前3Apache ShardingSphere 5.0.0 Document
Shadow Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 7.5.3 Routing Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282 7.5.4 Shadow Judgment value 10 to sharding 0 and value 11 to sharding 1, there will be 4 SQLs in Cartesian product after routing: SELECT i.* FROM t_order_0 o JOIN t_order_item_0 i ON o.order_id=i.order_id WHERE o. order_id in WHERE o. order_id in (10, 11); With binding table configuration, there should be 2 SQLs after routing: SELECT i.* FROM t_order_0 o JOIN t_order_item_0 i ON o.order_id=i.order_id WHERE o. order_id in0 码力 | 403 页 | 3.15 MB | 1 年前3Apache ShardingSphere 5.1.1 Document
Shadow Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291 7.6.3 Routing Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 7.6.4 Shadow Judgment value 10 to sharding 0 and value 11 to sharding 1, there will be 4 SQLs in Cartesian product after routing: SELECT i.* FROM t_order_0 o JOIN t_order_item_0 i ON o.order_id=i.order_id WHERE o. order_id in 11); With binding table configuration and use order_id to correlate, there should be 2 SQLs after routing: SELECT i.* FROM t_order_0 o JOIN t_order_item_0 i ON o.order_id=i.order_id WHERE o. order_id in0 码力 | 458 页 | 3.43 MB | 1 年前3Apache ShardingSphere 5.1.2 Document
Shadow Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302 7.6.3 Routing Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 7.6.4 Shadow Judgment value 10 to sharding 0 and value 11 to sharding 1, there will be 4 SQLs in Cartesian product after routing: SELECT i.* FROM t_order_0 o JOIN t_order_item_0 i ON o.order_id=i.order_id WHERE o. order_id in 11); With binding table configuration and use order_id to correlate, there should be 2 SQLs after routing: SELECT i.* FROM t_order_0 o JOIN t_order_item_0 i ON o.order_id=i.order_id WHERE o. order_id in0 码力 | 503 页 | 3.66 MB | 1 年前3Apache ShardingSphere 5.0.0-alpha Document
value 10 to sharding 0 and value 11 to sharding 1, there will be 4 SQLs in Cartesian product after routing: SELECT i.* FROM t_order_0 o JOIN t_order_item_0 i ON o.order_id=i.order_id WHERE o. order_id in WHERE o. order_id in (10, 11); With binding table configuration, there should be 2 SQLs after routing: SELECT i.* FROM t_order_0 o JOIN t_order_item_0 i ON o.order_id=i.order_id WHERE o. order_id in ); If the routing algorithm is value % 2, when a logical database t_order corresponds to two physical databasest_order_0 and t_order_1, the SQL will be executed on t_order_1 after routing. The following0 码力 | 311 页 | 2.09 MB | 1 年前3Apache ShardingSphere Shadow DB 及在 CyborgFlow 中的应用 - 侯阳
regex: “[1]” shadowAlgorithms:: type: SIMPLE_HINT props: foo: bar Shadow DB Routing Process 依次判定影子表下配置的影子 算法,有任何算法判定成功。 影子算法判定成功。 判定 SQL 执行语句涉及的表 与配置的影子表是否有交集 请输入您的内容 Shadow Table 0 码力 | 22 页 | 3.83 MB | 1 年前3Apache ShardingSphere 中文文档 5.4.1
executeQuery()) { while (rs.next()) { // ... } } } // Sharding database without sharding table and routing to only one database with using HintManager String sql = "SELECT * FROM t_order"; try (HintManager check your sharding conditions ‘%s‘ to avoid same record in table ‘%s‘ routing to multiple data nodes. 4 40 00 20 088 Cannot found routing table factor, data source: %s, actual table: %s. 4 40 00 20 090 Can0 码力 | 530 页 | 4.49 MB | 1 年前3
共 18 条
- 1
- 2