SoccerLeagueDB
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的更多相关文章
随机推荐
- android之LruCache源代码解析
移动设备开发中,因为移动设备(手机等)的内存有限,所以使用有效的缓存技术是必要的.android提供来一个缓存工具类LruCache,开发中我们会经经常使用到,以下来他是怎样实现的. 在package ...
- c#Enum的用法
public enum ResType { Role = 0, Dept = 1, Group = 2, Site = 3, Org = 4, Sub=8 } 这里定义了一个enum ResTy ...
- 虚幻4随笔4 从project開始
前文说到UE3開始.虚幻就使用了UnrealBuildTool(下面简称UBT)来编译和生成代码. 为什么这么做而不是使用VS是非常好理解的:由于VS跨平台会比較麻烦.像虚幻这样体量的proje ...
- C++不确定行为
一个简单的程序引发了一块让人纠结的领域,也许强调编程规范的重要性也在这把.规范了就easy避免一些问题. 程序是这种 int Change(int& a) { a = 4; return a; ...
- 《转》MFC网络编程学习
原地址:http://www.cnblogs.com/renyuan/archive/2013/06/04/3117006.html要学习好网路编程,主要看以下几个方面: 1.掌握概念,诸如:同步(S ...
- UVA 10245 The Closest Pair Problem 最近点问题 分治算法
题意,给出n个点的坐标,找出两点间最近的距离,如果小于10000就输出INFINITY. 纯暴力是会超时的,所以得另辟蹊径,用分治算法. 递归思路将点按坐标排序后,分成两块处理,最近的距离不是在两块中 ...
- [poj 2991]Crane[线段树表示向量之和,而非数量]
题意: 起重机的机械臂, 由n段组成, 对某一些连接点进行旋转, 询问每次操作后的末端坐标. 思路: 由于旋转会影响到该点之后所有线段的角度, 因此容易想到用线段树记录角度, 成段更新. (但是不是每 ...
- SaaS怎样改变了商务世界
当下,全球的经济环境愈发复杂,竞争日益激烈,这就要求企业负责人高速适应和调整战略应对挑战.假设你的企业可以优化内部操作流程,走在新技术的前沿,你就行减少成本.改善服务质量.没有及时应对的企业非常快就会 ...
- Codeforces Round #269 (Div. 2) A B C
先说C 题目链接:http://codeforces.com/problemset/problem/471/C 题目意思:有 n 张卡,问能做成多少种不同楼层(floor)的 house.注意这 n ...
- tar.bz2解压
bzip2 -d gcc-4.1.0.tar.bz2 tar -xvf gcc-4.1.0.tar 或 tar -xvf *.tar