传智播客 mybatis 框架课程讲义
getString("username")); } } catch (Exception e) { e.printStackTrace(); }finally{ //释放资源 if(resultSet!=null){ try { resultSet.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); preparedStatement.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } if(connection!=null){ try { connection.close(); } catch (SQLException e) { // TODO TODO Auto-generated catch block e.printStackTrace(); } } } } 上边使用 jdbc 的原始方法(未经封装)实现了查询数据库表记录的操作。 1.1.2 jdbc 编程步骤: 1、 加载数据库驱动 2、 创建并获取数据库链接 3、 创建 jdbc statement 对象 4、 设置 sql 语句 5、 设置 sql 语句中的参数(使用0 码力 | 75 页 | 1.16 MB | 1 年前3The Vitess 5.0 Documentation
dynamic resharding, the data in the source shards is copied into the destination shards, allowed to catch up on replication, and then compared against the original to ensure data integrity. Then the live will first stop accepting updates. Then the process will wait for the new shard masters to fully catch up on filtered replication before allowing them to begin serving. Since filtered replication has been avoid recovering a crashed database. Instead, create a fresh one from a recent backup and let it catch up. Relying on replication also allows you to loosen some of the disk-based durability settings.0 码力 | 206 页 | 875.06 KB | 1 年前3The Vitess 11.0 Documentation
During resharding, the data in the source shards is copied into the destination shards, allowed to catch up on replication, and then compared against the original to ensure data integrity. Then the live Once a skew is detected, events for streams that are ahead are held back until the lagging streams catch up causing the skew to reach an acceptable level. Each VStreamer event (vevent) contains two timestamps: avoid recovering a crashed database. Instead, create a fresh one from a recent backup and let it catch up. Relying on replication also allows you to loosen some of the disk-based durability settings.0 码力 | 481 页 | 3.14 MB | 1 年前3The Vitess 6.0 Documentation
During resharding, the data in the source shards is copied into the destination shards, allowed to catch up on replication, and then compared against the original to ensure data integrity. Then the live avoid recovering a crashed database. Instead, create a fresh one from a recent backup and let it catch up. Relying on replication also allows you to loosen some of the disk-based durability settings. transactions if the send rate of the source exceeds the replay rate of the destination. This allows it to catch up very quickly when there is a backlog. Load tests have shown a 3-20X improvement over traditional0 码力 | 210 页 | 846.79 KB | 1 年前3The Vitess 10.0 Documentation
During resharding, the data in the source shards is copied into the destination shards, allowed to catch up on replication, and then compared against the original to ensure data integrity. Then the live Once a skew is detected, events for streams that are ahead are held back until the lagging streams catch up causing the skew to reach an acceptable level. Each VStreamer event (vevent) contains two timestamps: avoid recovering a crashed database. Instead, create a fresh one from a recent backup and let it catch up. Relying on replication also allows you to loosen some of the disk-based durability settings.0 码力 | 455 页 | 3.07 MB | 1 年前3The Vitess 9.0 Documentation
During resharding, the data in the source shards is copied into the destination shards, allowed to catch up on replication, and then compared against the original to ensure data integrity. Then the live avoid recovering a crashed database. Instead, create a fresh one from a recent backup and let it catch up. Relying on replication also allows you to loosen some of the disk-based durability settings. If all replicas are lagging, then a failover process must choose between waiting for a replica to catch up or losing data. Some common database operations include mass writes to the database, including0 码力 | 417 页 | 2.96 MB | 1 年前3The Vitess 12.0 Documentation
During resharding, the data in the source shards is copied into the destination shards, allowed to catch up on replication, and then compared against the original to ensure data integrity. Then the live Once a skew is detected, events for streams that are ahead are held back until the lagging streams catch up causing the skew to reach an acceptable level. Each VStreamer event (vevent) contains two timestamps: avoid recovering a crashed database. Instead, create a fresh one from a recent backup and let it catch up. Relying on replication also allows you to loosen some of the disk-based durability settings.0 码力 | 534 页 | 3.32 MB | 1 年前3The Vitess 7.0 Documentation
During resharding, the data in the source shards is copied into the destination shards, allowed to catch up on replication, and then compared against the original to ensure data integrity. Then the live avoid recovering a crashed database. Instead, create a fresh one from a recent backup and let it catch up. Relying on replication also allows you to loosen some of the disk-based durability settings. transactions if the send rate of the source exceeds the replay rate of the destination. This allows it to catch up very quickly when there is a backlog. Load tests have shown a 3-20X improvement over traditional0 码力 | 254 页 | 949.63 KB | 1 年前3SQLite Tutorial
forName("org.sqlite.JDBC"); c = DriverManager.getConnection("jdbc:sqlite:test.db"); } catch ( Exception e ) { System.err.println( e.getClass().getName() + ": " + e.getMessage() ); SALARY REAL)"; stmt.executeUpdate(sql); stmt.close(); c.close(); } catch ( Exception e ) { System.err.println( e.getClass().getName() + ": " + e.getMessage() ); stmt.executeUpdate(sql); stmt.close(); c.commit(); c.close(); } catch ( Exception e ) { System.err.println( e.getClass().getName() + ": " + e.getMessage() );0 码力 | 172 页 | 1.27 MB | 1 年前3The Vitess 8.0 Documentation
During resharding, the data in the source shards is copied into the destination shards, allowed to catch up on replication, and then compared against the original to ensure data integrity. Then the live avoid recovering a crashed database. Instead, create a fresh one from a recent backup and let it catch up. Relying on replication also allows you to loosen some of the disk-based durability settings. If all replicas are lagging, then a failover process must choose between waiting for a replica to catch up or losing data. Some common database operations include mass writes to the database, including0 码力 | 331 页 | 1.35 MB | 1 年前3
共 139 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14