create table if not exists League (

lid int primary key auto_increment,   
   lyear int not null,
   season varchar(10) not null,
   title varchar(30) not null
);

create table if not exists tb_test
(
    id int primary key auto_increment,
    name varchar(200) not null,
    salary float(11,2),
    birthday date,
    sex varchar(5),
    sleep time,
    ts timestamp,
    description text,
    picture blob
);

create table if not exists Player (
   pid int primary key auto_increment,
   name varchar(30) not null,
   address varchar(30) not null,
   city varchar(20) not null,
   email varchar(40) not null
);

--
-- This table represents the relationship between leagues and players.
--
create table if not exists Registration (
   lid int not null,
   pid int not null,
   division varchar(20) not null,
   league_lid int not null,
   player_pid int not null,
   primary key (lid, pid)
);

create table if not exists AdminUser (
   uid int primary key auto_increment,
   username varchar(20) not null,
   password varchar(20) not null
);

-- Create the initial set of leagues.
INSERT INTO League (lid, lyear, season, title) VALUES (1, 2008, 'Spring', 'Soccer League (Spring ''08)');
INSERT INTO League (lid, lyear, season, title) VALUES (2, 2008, 'Summer', 'Summer Soccer Fest 2008');
INSERT INTO League (lid, lyear, season, title) VALUES (3, 2008, 'Fall', 'Fall Soccer League (2008)');
INSERT INTO League (lid, lyear, season, title) VALUES (4, 2009, 'Spring', 'Soccer League (Spring ''09)');
INSERT INTO League (lid, lyear, season, title) VALUES (5, 2009, 'Summer', 'The Summer of Soccer Love 2009');
INSERT INTO League (lid, lyear, season, title) VALUES (6, 2009, 'Fall', 'Fall Soccer League (2009)');

-- Insert the basic AdminUser.
INSERT INTO AdminUser (uid, username, password) VALUES (100, 'admin', 'admin');
INSERT INTO AdminUser (uid, username, password) VALUES (101, 'jack', 'admin');

Performance

  • Tier:
    • In presentation tier, business tier and integration tier, use load balancing.
    • In business tier, use a stateless session Bean pooling mechanisms.
    • In SessionFaca control level, choose ReadCommited transaction to improve the transaction processing speed and avoid the dirty data.
    • In JMS implementation, use asynchronous communication, store-and-forward mechanism.
    • Using BusinessDelegate and set up the cache, according to the shooting, especially to the offer and the product.
    • Use the ServiceLocator, conducive to the JNDI lookup.
  • Layer:
    • Use high-performance servers, increase the number of CPUs to equal or more than four.
    • Do pressure test to find out whether the servers meet the performance requirements
    • Find out performance bottlenecks if the performance requirement is not satisfied.

Availability

  • Tier:
    • Set up load balancing and use Session Copy inn presentation tier, business tier and resource tier.
    • Use Oracle/RAC technology in resource tier.
    • Redundent network connections

Reliability

  • Tier:
    • Using JMS asynchronous communication technology, control the transaction in the SessionFaca.
    • Choose ReadCommited transaction level, improve things to deal with both speed and avoid the dirty data.
    • Use cluster failover in presentation tier and business tier.
    • In the resource layer using RAC, RAC is a mature product to provide good support for reliability.

Scalability

  • Tier:
    • Set load balancing for each tier.
    • In business tier, use a stateless session Bean pooling mechanisms.
    • Use Session Affinity and Session Copy on web server
    • Use Off-Load Shared Resources on application server

Security

  • Tier:
    • In the Web and EJB tier, use JAAS.
    • Set the roles of seller, buyer and Auction Market etc., assign relative permissions to each role.
    • Use UID and password for logging in.
    • Set resource access control in the tiers.
  • Layer:
    • The Lower Playform layer use Linux operating
      system, and set up the firewall and SSL.

• 
Replication

• 
Load balance

• 
Failover

• 
Off-load shared resources

• Forward cache

• Request prefetch

• Request short circuit

• Session affinity

SoccerLeagueDB的更多相关文章

随机推荐

  1. 编写生成彩色验证码的Servlet

    利用Ajax实现无刷新的彩色验证码时,也需要编写一个名称为PictureCheckCode.java的Servlet,该类继承HttpServlet,主要通过service()方法生成验证码. 下面将 ...

  2. linux下修改hostid

    linux下修改hostid 网上有很多版本,总结了这几点. 1> 一个以16进制显示的int字符串: 2> 配置文件: /etc/hostid; 如果有值,输出, 结束. 3> 从 ...

  3. Java Web Services (2) - 第2章 启动日志分析

    ZHAOFLIU-Mac:dev liuzhaofu$ ./start --seed########################################################## ...

  4. 基于飞思卡尔i.MX 6Quad Sabrelite开发板的触摸屏调试

    1      概述 本次任务是在飞思卡尔i.MX 6Quqd Sabrelite开发板上调试触屏驱动,触屏芯片是Goodix的gt828芯片,触屏接口是I2C. 操作系统:android 4.0.4 ...

  5. 解决Delphi MDI 闪烁问题(使用WM_SETREDRAW锁屏后进行处理)

    procedure TMainForm.CreateMDIChild(const Name: string); var Child: TMDIChild; begin { create a new M ...

  6. SLB 权重问题

    <pre name="code" class="html">一般配置SLB的时候有个权重0到100,是如何选择数值的? 权重需要您根据后端机器的配置 ...

  7. Installing SSL on CentOS | My Virtual Time Capsule

    Installing SSL on CentOS | My Virtual Time Capsule Installing SSL on CentOS Extracted from the Sourc ...

  8. Linux从用户层到内核层系列 - GNU系列之glibc介绍

    题记:本系列文章的目的是抛开书本从源代码和使用的角度分析Linux内核和相关源代码,byhankswang和你一起玩转linux开发 轻松搞定TCP/IP协议栈,原创文章欢迎交流, byhankswa ...

  9. poj3177(边双连通分量+缩点)

    传送门:Redundant Paths 题意:有n个牧场,Bessie 要从一个牧场到另一个牧场,要求至少要有2条独立的路可以走.现已有m条路,求至少要新建多少条路,使得任何两个牧场之间至少有两条独立 ...

  10. IE8,IE9,IE10,FireFox 的CSS HACK

    #employeesView { top: 732px; //所有浏览器 top: 730px\9;//所有IE浏览器 } @media all and (min-width:0) { #employ ...