server| Performance
1, in the program, to ensure that in the implementation of the function of the foundation, minimizing the number of accesses to the database, minimizing the number of accesses to the table by searching the parameters, minimising the result set, and reducing the burden of the network; the ability to separate the operations as much as possible, to improve the response rate each time; When
server| Sample | data
Example of tree data processing in SQL Server 2005--Create test dataif exists (SELECT * from dbo.sysobjects WHERE id = object_id (n ' [TB] ') and OBJECTPROPERTY (ID, n ' isusertable ') = 1)drop table [TB]Go
--Sample dataCREATE TABLE [TB] ([id] int PRIMARY key,[pid] int,name nvarchar (20))INSERT [TB] SELECT 1,0,n ' China 'UNION all SELECT 2,0
Label:1. Optimize the MySQL SERVER 7 group background processMasterthread: It is mainly responsible for flushing dirty cache pages to data files, performing purge operations, triggering checkpoints, merging insert buffers, and so on. Insertbuffer Thread: A merge operation that is primarily responsible for inserting buffers. Readthread: Responsible for database read operation, can configure multiple threads
Vmware-tools" in the Virtual machine menu and the Vmware-tools file will be imaged to the CD-ROM.Copy the "vmwaretools-9.6.0-1294478.tar.gz" file to your desired location, copy it to/TMP, unzip650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4C/37/wKiom1Q5Fw6CUazmAAJnoJF292c466.jpg "title=" 23.jpg "alt=" Wkiom1q5fw6cuazmaajnojf292c466.jpg "/>650) this.width=650; "style=" float:left; "src=" http://s3.51cto.com/wyfs02/M02/4C/38/wKioL1Q5F4XgzwY_ Aapwti89bxc789.jpg "title=" 24.jpg "alt="
iis| server 1. Enabling HTTP persistence can improve the efficiency of 15~20% execution.
2. Not enabling logging can improve the efficiency of 5~8% execution.
3. The use of a [stand-alone] handler can cost 20% of its execution efficiency.
4. Increasing the number of saved documents for cache memory can improve the efficiency of activeserver pages.
5. Do not use CGI program
6. Increase the number of IIS 5.0
ASP tutorials. NET application cookies sessions server built objects
Many objects are built into the ASP.net tutorial, including application, response, request, cookies, sessions, cache, server, and viewstate. Through these objects, you can provide some essential features of the site, such as the absolute path to the file, the number of people online, the total number of visitors to the site, online store
Tags: case sensitive keyword Scratch database order number--1. Common stored ProceduresSp_databases--Returns a list of available databasesSp_tables--Returns a list of available tables in the currently selected database, including not only your own tables, but also system tables and other tablesSp_tables null, dbo, scratch, "' Table '"--returns only the available tables for the currently selected database, excluding views and system tablesSp_columns AR
, Col.length aslength,ISNULL(ColumnProperty(Col.id, Col.name,' Scale'),0) asNumber of decimal digits, Case when ColumnProperty(Col.id, Col.name,'isidentity')= 1 Then '1'ELSE "' END asidentification, Case when EXISTS(SELECT 1
fromdbo.sysindexes siINNER JOINDbo.sysindexkeys Sik onSi.id=sik.id andSi.indid=Sik.indidINNER JOINDbo.syscol
Monitoring Server StatusGet System Performance Information1, CPU information:The Linux operating system uses several parts of the CPU:User time; SystemTime; Wait Io;idlePsutil.cpu_times ()Psutil.cpu_times (). UserPsutil.cpu_count ()2 , Memory informationpsutil.virtual_memory () # View memory Full informationpsutil.swap_memory () # View Swap Partition Information3 , disk informationpsutil.disk_io_counters () # get the hard drive IO Totalpsutil.disk_usa
ServerSocket: Build a simple server with ServerSocketWe can deliver information in the following ways:1.Socket2.telnetOther implemented applications such as 3.ftp/http/httpsYou can see that an implemented app will pass different data ...ServerSocket can accept any data coming in.Obviously Sockt and ServerSocket can implement a service that responds only to a certain request through a well-established agreem
This section collects a large number of SQL Server functions to focus on an article, from simple SQL query functions, character processing functions, stored procedure functions, statistics, character interception functions.
SQL Server function Encyclopedia--Aggregate functionsUse pubsGoSelect AVG (DISTINCT price)--averageFrom titleswhere type= ' business 'GoUse pubsGoSelect Max (ytd_sales)-Maximum numberFr
Today, using NAVCAT to add foreign keys to a table error:You have a error in your SQL syntax; Check the manual-corresponds to your MySQL server version for the right syntax-use-near ' Type=innodb ' on line 1After troubleshooting, it was discovered that the types of the two tables were not the same:Sql:show Table Status Query the state of the data table, engine that column isTo modify a table type using a statement: ALTER table ' cms_channel ' ENGINE =
Reprint Please specify Source: http://blog.csdn.net/bettarwang/article/details/40180271The ERROR:HHH000388:Unsuccessful:create table info_table (ID integer NOT NULL auto_increment, title varchar (255), Content V Archar (255), primary key (ID)) Type=innodbError:you has an error in your SQL syntax; Check the manual-corresponds to your MySQL server version for the right syntax-use-near ' Type=innodb ' on line 1Obviously, this is the MySQL version number
Label:In today's scale OLTP system, it is a good way to solve the problem by replicating multiple copies in order to alleviate the single point of reading and writing pressure in the database, especially the read pressure.The SQL Server transactional replication transactional Replication is the most common form of replication we take. Some of the previous articles always introduce some basic constructs,Lack of some introduction to the optimization, to
First, the preparation of software
A. Check that your system has the following software installed
1.pam
2.pam-devel
3.mysql
4.mysql-servel
5.mysql-devel
6.imap-devel
7.sharutils
B. Download the following software
1.metamail*.i386.rpm
2.pam-mysql
3.cyrus-sasl-2.1.15
4.postfix-2.0.16
5.courier-imap
C. Description
Mysql-devel on the 3rd disk. I forgot to install, the result pam-mysql and postfix compiles not t
Tags: blog http sp 2014 problem c log R BSMethod 1,Set LOCK_TIMEOUT 5000; This setting timeout is 5 seconds;Example:Connection ABEGIN TranUPDATE dbo. TestTableSet String = ' AAA 'where id=1;GoConnection bUPDATE dbo. TestTableSet String = ' BBB 'where id=1;GoYou can see that you are not setting lock_timeout it is going to wait forever.Connection CSet LOCK_TIMEOUT
This article is Senlie original, reprint please retain this address:Http://blog.csdn.net/zhengsenlie1. Pre-Create a thread pool and have each thread call the Accept2. Use a mutex instead of having each thread block in the Accept callThe thread structure that is used to maintain information about each thread the typedef struct {pthread_tthread_tid;/* Threads ID */longthread_count;/* processing the number of connections */} Thread; thread*tptr;/* the thread structure pointer to a calloc-generated
js| Server
This article in the JSP program is based on the function of their own set up a separate program, we want to use what function, their combination of it.
Establishment/inspection and deletion of documents
String Path=request.getrealpath ("");OUT.PRINTLN (path);File F=new file (path, "File.txt");Out.println (f);Out.println (F.exists ());
if (f.exists ()) {//check if File.txt existsF.delete ()//delete File.txt fileOut.println (path + "\\File.t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.