Start using Elasticsearch: Learn how to search

This article is from https://blog.csdn.net/UbuntuTouch/article/details/99546568 , with amendments and deletions. In the previous article, we have described how to use the REST interface to create index es, documents, and actions in ES.In today's article, we'll show you how to use ES to search for our data.ES is a near real-time search.Let's c ...

Posted by evmace on Tue, 02 Jun 2020 03:08:05 -0700

mutex and lock in C + + multithreading

@ catalog 1, Basic concepts 2, How to use 2.1 mutex.lock(),unlock() 2.2 std::lock_guard class template 2.2.1 std::lock_ STD:: adopt of guard_ Lock parameter 2.3 std::unique_lock function template 2.3.1 unique_ The second parameter of lock 2.3.2 unique_ Member function of lock ...

Posted by jeffkee on Mon, 01 Jun 2020 04:00:45 -0700

LINQ performance analysis

catalog Choose the appropriate flow operation mode Be careful to execute immediately Will LINQ to Objects degrade code performance Different methods What has been learned The cost of using LINQ to Objects Performance and simplicity: can't fish and bear paw have both LINQ's advantage is not to provide any new functions, but to enable us t ...

Posted by TreColl on Sun, 31 May 2020 21:06:09 -0700

Using attribute animation to realize the animation effect of starlight

In Android, attribute animation is a very interesting function to control the animation effect of parameter transformation Compared with gif image, animation controls need to save space and increase response speed main points: (1) Use PercentLayout to set the size of custom controls (2) The two important functions of attribute animation are ...

Posted by mauri_gato on Sun, 31 May 2020 09:14:52 -0700

type column parsing of explain

1,const Indicates that the execution step returns at most one row of data. const usually appears in the equivalent query of the primary key or unique index, such as the equivalent query of the primary key id of the t table:It can be considered that it is as fast as a rocket to locate a record by comparing the equivalence between the primary key ...

Posted by cachemony on Sun, 31 May 2020 08:54:30 -0700

Java Dynamic agent and static agent and what it can do for us

I believe that we have more or less come into contact with Java's agent mode on the Internet and in our daily study and work. We often hear some terms about static agent and dynamic agent. But do we really know that? At least when I interviewed, I found that many people were not very clear. First of all, agents are easy to understand, that is, ...

Posted by -Karl- on Sun, 31 May 2020 03:05:13 -0700

WKWebView gets page title and load progress value

1. Foreword After IOS 8, Apple launched a new framework Webkit, which provides a component to replace UIWebView, WKWebView. Compared with UIWebView, it has many advantages, faster speed and less memory. 2. Basic use The usage method is similar to that of UIWebView. For details, please refer to Replace UIWebView with WKWebView , this art ...

Posted by woza_uk on Sun, 31 May 2020 01:59:07 -0700

JS data structure and algorithm heap

concept The bottom layer of the heap is actually a complete binary tree, which can be implemented by arrays. A binary tree that satisfies the following conditions: Any node is larger or smaller than all its children (large root heap, small root heap) It is always a complete tree, that is, the nodes of other layers are filled with elements ...

Posted by tweek on Sat, 30 May 2020 17:16:31 -0700

strlen old bottle new wine

Introduction - overview of strlen I accidentally scan the code in glibc strlen.c, which I can't forget for a long time. I also remember the starting point in my unknown programming career: Programming is not a joke, some are difficult, some are reluctant to give up. Review with the track, once the most familiar feeling of strlen~ /* Copyright ...

Posted by jtrost on Fri, 29 May 2020 06:52:45 -0700

Sorting algorithm (2): exchange sorting

Exchange sort can be divided into bubble sort and fast sort. Among them, fast sorting is an improvement on bubble sorting 1. Bubble sorting Principle: compare the adjacent two numbers, and exchange them from small to large. After one pass, the largest (smallest) number will be exchanged to the last one, and then compare the two numbers from the ...

Posted by Amman-DJ on Thu, 28 May 2020 09:15:28 -0700