Discover postgresql performance tuning, include the articles, news, trends, analysis and practical advice about postgresql performance tuning on alibabacloud.com
Performance Tuning is not a simple task. There is no omnipotent solution at all, but you can use some basic principles to implement it.
In general, performance tuning is the role of DBA. however, DBA does not have time to carefully check every change made to the stored procedure. so learning some basic
The class "Performance Tuning for large-scale and high-traffic Internet sites" is the last good class I attended. I thought this class was mostly about background services, in fact, I am mainly talking about client optimization. I mainly talk about 14 standards. I vaguely felt where I met these 14 standards. Then I checked google, it is true that these 14 items are not new, but they are not too concerned 《
cache = max memory * 50%
Procedure cache size = max memory * 20-30%
Number of user connections = N (default = 25)
Number of lock = N * Maximum number of locks required by a single user * 120%
(Generally, this is difficult to estimate. The reference value provided by senior syabse engineers: 1.8 million for users. I estimate that 100000 is recommended for 10 Gb of data)
Number of open objects = 10000
Number of open indexed = 10000
This configuration can basically be used normally. You can down
Guide
Performance tuning has always been one of the most important work of operations engineers, if you are in a production environment encountered a slow system response, hard disk IO throughput anomalies, data processing speed is lower than expected, or such as CPU, memory, hard disk, network and other system resources have been exhausted for a long time, Then this article will really help you, if no
user data on each disk,
Causing greater I/O rates to the physical disk and allowing disk bottlenecks to occur.
The most common disk bottleneck is that the hard disk is too small;
Most disk configurations are based on capacity requirements rather than performance;
The cheapest solution may be a small number of large-capacity disks;
The second most common problem is having too handle logical disks on the same array.
This increases seek time and signif
into 1000 only one property.3. When we display a list of CLR objects (such as list) in a list (such as a ListBox), the ListBox also dynamically reflects this change if you want to modify the list object. At this point, we should use a dynamic ObservableCollection object binding. Instead of updating Itemsource directly. The difference between the two is that updating itemsource directly causes WPF to discard all the data that is already in the listbox and then reload all of it from the list. The
Chapter 2 procedural performance tuning of PL/SQL applications
I. Reasons for PL/SQL Performance problems
When the execution efficiency of PL/SQL-based applications is low, it is usually caused by poor SQL statements and programming methods, poor understanding of PL/SQL basics or misuse of shared memory.
Bad SQL statements in PL/SQL
PL/SQL programming see
As an excellent web framework, ANGLARJS can greatly simplify the burden of front-end development. Recently Sebastian Fröstl in a blog post "Angularjs performance tuning for Long Lists" that anglarjs in the processing of large lists containing complex data structures, they run very slowly. He also shared the solution in the text. The following is a translation of the text.
Anglarjs is great, but it can run
From January Google released 16 series of video on performance optimization, this period of time in the major communities have seen a lot of excellent articles about the optimization series. We have analyzed the causes of performance, shared how to optimize our applications, and introduced tools to help us detect performance issues.One of the tools that is descri
PrefaceA project in the development, testing, on-line, then the size of the user is still relatively small, so just on-line projects are generally stable performance. However, with the passage of time, the increase in the number of users, the increase in QPS and other factors will cause the project slowly show a half-day unresponsive situation. In the previous work also happened to encounter this process, at that time, the project carried out a lot of
are some bugs, is not necessarily applicable to the core of the online system.3. DRBD Disk Network mirroring schemeAdvantage: Software is powerful, data is mirrored across physical hosts at the underlying fast device level, and different levels of synchronization can be configured according to performance and reliability requirements. IO operations are kept in order to meet the database's demanding data consistency.Disadvantage: Non-Distributed File
Label:Original: SQL Server performance Tuning (i)--judging system resource bottleneck from waiting stateView the status of all SQL Server tasks at that time (sleeping, runnable, or running) through the DMV2005, 2008 provides the following three view Tudon detailed query:
DMV
Use
Sys.dm_exec_requests
Returns information about each request that is executed in SQL Serve
operations, SQL operations, list refreshes, etc.) consume resources using the background process to implement, can not occupy the UI thread, the UI thread is the main thread, the main thread is the key to keep the program smooth, should only operate those core UI operations, such as processing view properties and drawing;
Minimize the wake-up mechanism. We often use broadcasts to receive messages and events that are expected to respond, but too much of the response exceeds our own requireme
last few lines of each test result. Pay special attention to the memory, which easily exceeds the memory configuration]
Using login values from ~ /. My. cnf-Initial login attempt failed-Testing for stored webmin passwords:None FoundCocould not auto detect login info!Found potential sockets:/tmp/mysql. sockUsing:/tmp/mysql. sock
# I believe you can understand the following items, but I will not explain them.Wocould you like to provide a different socket? : [Y/N] nDo you have your login handy? [Y
MySQL performance tuning primer script is a simple and easy-to-use mysql optimization tool. In fact, it is a shell script.
Download:
$ Wget http://www.day32.com/MySQL/tuning-primer.sh
Run
$ Sh tuning-primer.sh all
After running the command, you will be asked about the mysql user name, password, and preferably mysq
This article is a systematic summary of the consumption analysis in performance tuning.For additional space on the Performance tuning series, see.Performance Tuning: CPU consumption analysisPerformance tuning: IO consumption analysisPerformance
Basically, the main considerations for Hibernate performance tuning are as follows:? database Design Tuning? HQL optimization? Proper use of APIs (e.g., different collections and query APIs based on different business types)? Main configuration parameters (log, query cache, fetch_size, batch_size, etc.)Map file optimization (ID generation policy, Level two cache,
Oracle Performance tuning is a broader and somewhat more complex topic, and the biggest problem for ordinary DBAs is where to start and what to do. All the information you know may be someone (a user) who reports a problem with the performance degradation of an application or query, and where do you start when faced with such a problem?
Oracle's
Reference | reference Manual | skills | performance | Chinese InnoDB Chinese reference Manual---Dog dog (heart sail) Translation 9 Performance tuning tips (performance tuning tips)
1. If Unix top or Windows Task Manager shows the service's CPU occupancy rate less than 70%, (
rendering.
Set the shadow effect to add a shadow path.
If the fillet effect is required when sliding, turn on rasterization.
Actual combatThe demo of this article can be downloaded on my github and then experience the optimization process one step at a pace. But after all, the demo is deliberately set up an environment, I will be in my own copy of the simple book app to constantly optimize the actual combat, welcome to learn to communicate together.Resources:
Draw pixel 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.