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的更多相关文章
随机推荐
- Javascript selection的兼容性写法介绍
本文为大家讲解下Javascript selection的兼容性写法,感兴趣的朋友可以参考下 function getSelectedText() { //this function code is ...
- Swift - 使用表格组件(UITableView)实现分组列表
1,样例说明: (1)列表以分组的形式展示 (2)同时还自定义分区的头部和尾部 (3)点击列表项会弹出消息框显示该项信息. 2,效果图: 3,代码如下: 1 2 3 4 5 6 7 8 9 ...
- Xcode免证书真机调试,解决cannot read entitlement data问题
本文是根据某个帖子写的(帖子链接在最后放出),但是在配置的过程中,遇到了一个纠结的问题,这个问题折腾了我N久,一直没搞明白到底是什么原因,问题如下: 按照原帖上写的每一步去做了,但是在最后编译的时候出 ...
- fragment Trying to instantiate a class com.example.testhuanxindemo.MyFragment that is not a Fragmen
在使用fragment的时候,先创建了一个fragment,然后为他创建布局,并在oncreateview中返回载入该视图的后返回的view,在activity的布局文件里,使用xml布局,用frag ...
- 百度地图之UI控制
在本文中主要介绍百度地图UI控制功能,即控制地图是否有缩放.平移.双击放大.旋转.俯视的功能以及控制是否显示内置缩放组件.指南针位置等.在文中采用标签监听使每个控制功能的方法见名知义,代码原型来源百度 ...
- SQL Server定时自动抓取耗时SQL并归档数据脚本分享
原文:SQL Server定时自动抓取耗时SQL并归档数据脚本分享 SQL Server定时自动抓取耗时SQL并归档数据脚本分享 第一步建库 USE [master] GO CREATE DATABA ...
- 墙体裂缝推荐的情况下驱动的PhoneGap入门,早看早收据
清华大学出版社推出<构建跨平台APP:PhoneGap移动应用实战> 零门槛的学习APP发展 刮 进步 20以上示范样本APP 3项目APP 台à跨终端à移动开发 完美生命周期:搭建好开发 ...
- Graphical Shell with WebShell - WebOS Internals
Graphical Shell with WebShell - WebOS Internals Graphical Shell with WebShell From WebOS Internals J ...
- 网页favicon.ico图标设置(转)
随便打开一个网页:比如 http://www.baidu.com/ 可以看到在浏览器的标签头上面显示了一个图标,这个图标是:,也就是我们常说的favicon.ico. 由于这篇文章主要讨论favico ...
- Android入门之简单短信发送器
效果图: manifest.xml 文件中加入 <uses-permission android:name="android.permission.SEND_SMS"/&g ...