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. 微软 自带 AJAX 拓展

    <内容有点乱,自己找记忆的~~~> 微软自带AJAX 控件大全:控件简介: ScriptManager 控件 为启用了 AJAX 的 ASP.NET 网页管理客户端脚本. ScriptMa ...

  2. ASP.Net状态管理读书笔记--思维导图

    课前提问几个问题 使用Session 配置 model aspnet_regsql.exe 常见问答 问:为什么Session在有些机器上偶尔会丢失?答:可能和机器的环境有关系,比如:防火墙或者杀毒软 ...

  3. 虚拟机centOS中安装Redis,主机Redis Destop Manager不能访问虚拟机Redis server的解决方案

    今天在学些redis的时候碰到个问题,发现主机Redis Destop Manager不能访问虚拟机Redis server的解决方案,找了一些网上的资料,原因可能有两个,整理记录下来: 1. Red ...

  4. Delphi中编写无输出函数名的DLL文件(有点意思)(400多篇博客)

    用 Delphi 用长了,总是发现,有些和 MS 不同的地方.例如,MS 的公开库中,常常隐藏了许多重要函数,这些函数在系统中常常有起着非常巨大的作用.一旦知道如何调用,可以给自己的应用程序提供很强的 ...

  5. [Android]获取设备相关信息

    public static int screenWidth(Activity activity) { DisplayMetrics dm = new DisplayMetrics(); activit ...

  6. linux内存基础知识和相关调优方案

    内存是计算机中重要的部件之中的一个.它是与CPU进行沟通的桥梁. 计算机中全部程序的执行都是在内存中进行的.因此内存的性能对计算机的影响很大.内存作用是用于临时存放CPU中的运算数据,以及与硬盘等外部 ...

  7. matlab矩阵的表示和简单操作

    原地址:http://www.cnblogs.com/Ran_Ran/archive/2010/12/11/1903070.html 一.矩阵的表示在MATLAB中创建矩阵有以下规则: a.矩阵元素必 ...

  8. VSTO学习笔记(十四)Excel数据透视表与PowerPivot

    原文:VSTO学习笔记(十四)Excel数据透视表与PowerPivot 近期公司内部在做一种通用查询报表,方便人力资源分析.统计数据.由于之前公司系统中有一个类似的查询使用Excel数据透视表完成的 ...

  9. 盒子游戏(The Seventh Hunan Collegiate Programming Contest)

    盒子游戏 有两个相同的盒子,其中一个装了n个球,另一个装了一个球.Alice和Bob发明了一个游戏,规则如下:Alice和Bob轮流操作,Alice先操作.每次操作时,游戏者先看看哪个盒子里的球的数目 ...

  10. html5css3杂记

    最新版本号的safari.chrome.firefox以及opera支持某些html5特性.ie9将支持某些html5特性. html5提供了展现视频的标准<video>支持ogg及mpe ...