rely on configuration, the greater the role of dependency management, which not only helps you simplify configuration, it can also help you to consolidate dependencies, which means that there is only one dependency configuration for a component (such as MySQL) throughout the project, which avoids the introduction of different versions of dependencies and avoids dependency conflicts.
Summary
This article describes some of the important concepts in MAVEN dependencies and provides some best
-reading, indexed data structures B + trees, B + Tree properties and search processes, and so on, so long as there is a perceptual understanding, it does not need to be understood very thoroughly and deeply.Several principles of index building1) leftmost prefix matching principle: MySQL will always match right until it encounters a range query (>, 2) The number of indexes is not the more the better, the index also takes up space, and no increase in data to maintain the index, as far as possible
PROCEDURE Sp_test1 () -Begin-> CREATE TABLE test1 (ID int,name varchar);->insert into test1 values (1, ' Lilei ');-> select * FROM Test1;-> end-> $Query OK, 0 rows Affected (0.00 sec) mysql> delimiter; The recovery semicolon is called as a delimited terminating symbol for calling the stored procedure mysql> call Sp_test1 (); Creating a stored procedure with parameters mysql> delimiter $--delimiter $ is set to the command termination symbol, in place of the default semicolon, Because semicolons
· InnoDB Storage Engine 14. Using an Object-relational mapper (relational Mapper) With ORM (Object relational Mapper), you can gain reliable performance gains. All the things an ORM can do, can be written manually. However, this requires a senior expert. The most important thing about ORM is "Lazy Loading", that is to say, only when the need to take the value of the time to really do. But you also need to be careful about the side-effects of this mechanism, because this is likely to degrade per
by'"'; load Data infile'/usr/local/huanghai/prefix16'IGNORE into table Dsideal_db.t_resource_info_huanghai-terminated by','Enclosed by'"'; load Data infile'/usr/local/huanghai/prefix17'IGNORE into table Dsideal_db.t_resource_info_huanghai-terminated by','Enclosed by'"'; load Data infile'/usr/local/huanghai/prefix18'IGNORE into table Dsideal_db.t_resource_info_huanghai-terminated by','Enclosed by'"'; load Data infile'/usr/local/huanghai/prefix19'IGNORE into table Dsideal_db.t_resource_info_huang
entire system.Add:MySQL enforces indexes and disables an index1, MySQL mandatory use index: Force index (index name or primary key PRI)For example:SELECT * FROM Table Force index (PRI) limit 2; (use primary key)SELECT * FROM Table Force index (ZIDUAN1_INDEX) limit 2; (Enforce use of index "Ziduan1_index")SELECT * FROM Table Force index (PRI,ZIDUAN1_INDEX) limit 2; (Forced use of index "PRI and Ziduan1_index")2. MySQL prohibits an index: Ignore index (indexed name or primary key PRI)For example:
adjustment SQL optimization cannot be done separately for one, but should take full account of all SQL in the system, especially when optimizing SQL's execution plan by tuning the index, it must not be forgotten how, pound foolish. 11. Explain the SQL that runs in the database whenever possible To optimize SQL, you need to be aware of the SQL execution plan to determine if there is room for optimization to determine if there is an execution plan problem. After a period of optimization of the S
: because my slave server is the primary server replication, MySQL server_id, in sync with the error:Fatal error:the slave I/O thread stops because master and slave has equal mysq L server UUIDs; These uuids must be D Ifferent for replication to work.(1) First check:mysql> Show variables like ' server_id ';+ ————— + ——-+| variable_name | Value |+ ————— + ——-+| server_id | 3 |+ ————— + ——-+master and slave cannot but the same. (2) if not, continue to troubleshoot. Enter the MySQL data directory,
exceededRds_threads_running_high_watermarkFunction: The number of queries used to control MySQL concurrency, such as setting the Rds_threads_running_high_watermark value to 100, allows MySQL concurrent queries to be 100, and queries that exceed the water level will be rejected, and the RDS _threads_running_ctl_mode with (the default is select).Recommendation: This parameter is often used in the scenario of second-kill or large concurrency, which has a good protective effect on the database.Tran
The microservices provided by Spring Cloud are HTTP-based, so it would be convenient to initiate a microservices call if the resttemplate provided by spring, plus a @loadbalanced annotation provided by the Ribbon, are available at the time of request. And load balancing is also possible. However, if the service provider parameters are more complex, then the use of this method requires splicing URLs or use the form of map, but it is not easy to develop. Spring Cloud Family Bucket provides a compo
' FGPayment2018 ' to ' C:\DATA\Payment_Dev\Data\FGPayment2018_dev.ndf ', MOVE ' Payment_log ' to ' C:\DATA\Payment_Dev\Log\Payment_dev_log.ldf ', norecovery,stats=5; go--Restore writable Filegroup full Backuprestore DATABASE [Payment_dev] filegroup = n ' FGPayment2018 ' from DISK = N ' C : \data\payment\backup\payment_fgpayment2018_20180316_full.bak ' with norecovery,stats=5; go--Restore writable Filegroup differential Backuprestore DATABASE [Payment_dev] filegroup = N ' FGPayment2018 ' from DI
purpose of the permanent link is to reduce the number of times the MySQL link is recreated. When a link is created, it will always be in a connected state, even if the database operation is finished. And since our Apache has started reusing its child processes-that is, the next HTTP request will reuse Apache's subprocess and reuse the same MySQL link. PHP Manual: Mysql_pconnect () In theory, this sounds very good. But from personal experience (and most people), this function creates more troubl
> call number_of_players (@pnumber);mysql> select @pnumber; +---------- +| @pnumber |+----------+| |+----------+mysql> Select COUNT (*) from players;+----------+| COUNT (*) |+----------+| |+----------+ Example 2: Create a process to calculate the number of fines for a player--the cursor declaration can contain variables mysql> delimiter $ $mysql > CREATE PROCEDURE number_penalties (-in P_playerno int,-out Pnumb ER int)-DECLARE a_playerno int; -DECLARE found bool default true;
the need to take the value of the time to really do. But you also need to be careful about the side-effects of this mechanism, because this is likely to degrade performance by creating many, many small queries.ORM can also package your SQL statements into a single transaction, which is much faster than executing them alone.Currently, the personal favorite of PHP's ORM is: Doctrine.21. Be careful with "permalink"The purpose of the permanent link is to reduce the number of times the MySQL link is
≤8)
Ext_size
Size of the extents, in page units
object_id
The ID of the database object
index_id
Represents the type of the data object
Partition_number
Partition code
Rows
Approximate number of rows of data
hobt_id
Storage unit ID of the heap or B-tree where the data is stored
Let's find a database to look at the fragmentation situation:You can see that the arrows refer to
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.