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的更多相关文章
随机推荐
- Java反射库中的安全漏洞在30个月后终于修复了(转)
2013年7月,安全组织Security Explorations发现了Java 7u25中的一个安全漏洞,通过这个漏洞攻击者可以完全摆脱Java沙箱.Oracle在更新的7u40中包含了一个补丁,但 ...
- 内网穿透神器ngrok(转)
相信做Web开发的同学们,经常会遇到需要将本地部署的Web应用能够让公网环境直接访问到的情况,例如微信应用调试.支付宝接口调试等.这个时候,一个叫ngrok的神器可能会帮到你,它提供了一个能够在公网安 ...
- HealthKit教程 Swift版:锻炼信息
原文:HealthKit Tutorial with Swift: Workouts 作者:Ernesto García 译者:Mr_cyz ) 欢迎回到我们的HealthKit系列教程! 在我们系列 ...
- Wayland中的跨进程过程调用浅析
原文地址:http://blog.csdn.net/jinzhuojun/article/details/40264449 Wayland协议主要提供了Client端应用与Server端Composi ...
- eclipse设置关联文件打开方式
window->preferences: General->Editors->File Associations
- Codeforce 143B - Help Kingdom of Far Far Away 2
B. Help Kingdom of Far Far Away 2 time limit per test 2 seconds memory limit per test 256 megabytes ...
- 在navigationItem中添加搜索栏
给navigationItem中添加个搜索栏,效果和大部分程序一样.代码如下: UISearchBar *searchBar = [[UISearchBaralloc] initWithFrame:C ...
- c#常见stream操作
原文: c#常见stream操作 常见并常用的stream一共有 文件流(FileStream), 内存流(MemoryStream), 压缩流(GZipStream), 加密流(CrypToStre ...
- JavaScript 中的事件类型3(读书笔记思维导图)
Web 浏览器中可能发生的事件有很多类型.如前所述,不同的事件类型具有不同的信息,而“ DOM3级事件”规定了以下几类事件. UI(User Interface,用户界面)事件:当用户与页面上的元素交 ...
- c#中的jQuery——HtmlAgilityPack
原文:c#中的jQuery--HtmlAgilityPack c#中是否有javascript中的jQuery类库? jQuery在访问和操作HTML 的DOM的便捷是前端开发工程师的一种福音,在c# ...