Partition Subtable for MySQL
1. Why divide tables?The database data becomes larger and larger, with too much data in a single table.This results in slower queries and database performance bottlenecks due to the lock mechanism of tables, which can seriously affect application operations.One mechanism in mysql is table and row locking to ensure data integrity.A table lock m ...
Added by johnnyblaze9 on Thu, 04 Jun 2020 03:09:26 +0300
Visitor mode of behavior mode
1 General
Visitor pattern is a behavior pattern, which is not commonly used. It can separate the algorithmic logic acting on the object from the object itself.
2 visitor mode
When we need to operate on a group of similar types of objects, we can maintain the operation logic within each object separately, but this violates the principle of singl ...
Added by riyaz123 on Sun, 31 May 2020 12:54:46 +0300
Aggregate operators of [LINQ standard query operator summary]
LINQ in C ා provides two operation modes: query expression and query operator. All query expressions are replaced by corresponding query operator classes. Query expression is a bit of "class" SQL. When writing SQL in the code, I always feel that it is not "elegant". Using query operators is "elegant". This series i ...
Added by nloding on Sat, 30 May 2020 17:01:17 +0300
vue upload image to base64, binary array, save encoded data to file
functional requirement
1. Picture to base64
2.base 64 to binary array
3. Save binary data to file and download to local
resolvent
Question 1:
reference material
vue element upload picture to base64
Specific code
getBase64(file) {
return new Promise(function (resolve, reject) {
let reader = new FileReader();
let imgResu ...
Added by error_22 on Fri, 29 May 2020 17:49:11 +0300
Hegel: aspire to be the best JavaScript static type checker
Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on!
As a rookie in JavaScript type checker, Hegel aspires to be the best JavaScript static type checker. It claims to provide a reliable type system with strong type inference. At ...
Added by drakal30 on Fri, 29 May 2020 09:31:34 +0300
Learning C + + DLL injection and interprocess communication
I always think that learning c + + is too complex, and there are many types in it, which are too many to distinguish at all. However, most of the online materials are c + +, and some problems are not solved perfectly with other methods (can be used in c, java, python)
Then I decided to do it. Because I had to do c + +, I had to do VC + +, and ...
Added by Virii on Wed, 27 May 2020 07:19:14 +0300
suricata uses pfring to monitor multiple network cards for error analysis and resolution
Problem scenarios
We use Suricata for traffic analysis. Suricata is deployed on a 48-core physical machine with a multi-network card. Due to business needs, suricata's network card for monitoring traffic has been upgraded from 5 to 6, enp176s0f1 has been added, and several similar errors have been found in suricata's log:
<Error> - [ERRC ...
Added by pandaweb on Tue, 26 May 2020 21:51:27 +0300
JS Array Method Complete
1. Before using the methods of arrays, you need to create arrays, which can be created in the following ways:
Literal Quantity (json)
var arr1 = []; //Create an empty array
var arr2 = [5]; //Create an array with a single element
var arr3 = [5,6,7]; //Create an array with multiple element ...
Added by gprobst on Tue, 26 May 2020 20:21:46 +0300
Detailed explanation of Spring IoC createBean method
preface
This article mainly analyzes the flow of the createBean() method of Spring IoC and the bean life cycle.
Here is a general flow chart:
text
AbstractAutowireCapableBeanFactory#createBean
@Override
protected Object createBean(String beanName, RootBeanDefinition mbd, @Nullable Object[] args) throws BeanCreationException {
if ( ...
Added by skippence on Fri, 22 May 2020 13:27:50 +0300
Android Handler mechanism: how ThreadLocal works
1, Handler mechanism and ThreadLocal
In the Handler mechanism, we will encounter a very important class in Looper: ThreadLocal, ThreadLocal is not a thread, its function is to store data in each thread.
When the handler is created, it will get the Looper of the current thread to construct the message loop system. The way to get it is through ...
Added by PJ droopy pants on Fri, 22 May 2020 08:29:05 +0300