Use join in Elasticsearch to perform parent-child association

In the process of developing using relational databases, you may often use foreign keys to represent the association between parent tables and child tables. In Elasticsearch, what methods can be used by developers to solve the one-to-many and one-to-many relationships between indexes? What about many-to-many relationships? 1 Problems with using object arrays You can easily […]

Analysis and solution of PyQt5 playing video with transparent channel

Analysis and solutions on using PyQt5 to play videos with transparent channels: Recently, when I was practicing on the PyQt5 project, I encountered the problem of playing a transparent channel background video. After searching for a long time on the Internet to no avail, I finally solved the problem by myself. The solution was quite […]

Distributed things [Seata implementation, download and start Seata service, build aggregation parent project construction] SpringCloudAlibaba framework construction, Seata integration, IDEA Dashaborad control panel configuration and opening, Java compiled version

Reprint: https://mp.weixin.qq.com/s/mKeoCnV9X0YFvX7LpCUhJQ CREATE DATABASE /*!32312 IF NOT EXISTS*/`bank1` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `bank1`; /*Table structure for table `account_info` */ DROP TABLE IF EXISTS `account_info`; CREATE TABLE `account_info` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `account_name` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT ‘Householder’s name’ , `account_no` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT ‘Bank card […]

el-element el-table tree table check linkage (parent check all children, child check parent check) ultimate version of selection problem

The requirements that need to be implemented are as follows: 1. When the parent is checked, all children are checked. 2. Uncheck the parent and uncheck all children. 3. When any child or grandchild is checked, its parent is still checked. 4. Uncheck all children and uncheck the parent as well. 5. When the last […]

PHP implements a tree structure of infinite classification, finds all children under it according to the parent ID, and finds all parents according to the child ID

1: Arrange data directly into a tree structure The data structure and methods are as follows: $items = array( 1 => array(‘id’ => 1, ‘pid’ => 0, ‘name’ => ‘Jiangxi Province’), 2 => array(‘id’ => 2, ‘pid’ => 0, ‘name’ => ‘Heilongjiang Province’), 3 => array(‘id’ => 3, ‘pid’ => 1, ‘name’ => ‘Nanchang City’), […]

Vue3<script setup> syntax sugar, three methods to achieve parent-child component communication and data monitoring.

In the script setup syntax sugar of Vue3, there is no way to simply implement the communication between parent and child components through the this pointer through Vue2’s ref, props, parent, central time bus and many other methods. There is also very little script setup syntax sugar on the Internet. Related tutorials, so I decided […]

springcloud01-parent project version control build

SpringCloud study notes Notes written on: 2021-1-26 1. Some basic knowledge Check the official website for details on the corresponding versions of springcloud and springboot: https://start.spring.io/actuator/info A piece of json data will be returned {<!– –>”git”:{<!– –>”branch”:”da812cd9d2b51f06817878e8af74eada11aebf22″,”commit”:{<!– –>”id”:”da812cd” ,”time”:”2021-01-22T15:51:18Z”}},”build”:{<!– –>”version”:”0.0.1-SNAPSHOT”,”artifact”:”start- site”,”versions”:{<!– –>”spring-boot”:”2.4.2″,”initializr”:”0.10.0-SNAPSHOT”},”name”:”start.spring.io website”,”time”:”2021-01-22T15:57:40.778Z”,”group”:”io.spring.start”},”bom-ranges”:{<!– –>”azure” :{<!– –>”2.2.4″:”Spring Boot >=2.2.0.RELEASE and <2.3.0.M1″,”3.0.0″:”Spring Boot >=2.3.0.M1 and <2.4.0-M1″},”codecentric-spring-boot-admin”:{<!– –>”2.2.4″:”Spring […]

vue-parent-child component communication

Parent component passes value-props to child component Define the parent component app and define the sub-component product-com. When the sub-component needs to use the value of the parent component – the sub-component uses props to receive the value passed by the parent component. Only receives multiple values using an array props:[‘name’ ] You can define […]

Redsocks traffic forwarding combined with iptables traffic transparent transmission under Linux appears socket: Too many open files and connect: Bad file descriptor

Under Linux, redsocks traffic forwarding combined with iptables traffic transparent transmission appears socket: Too many open files and connect: Bad file descriptor. Oct 8 18:59:34 localhost redsocks[26193]: connect: Bad file descriptor Oct 8 18:59:34 localhost redsocks[26193]: [192.168.10.10:53318->124.225.191.19:443]: red_connect_relay: Bad file descriptor Oct 8 18:59:34 localhost redsocks[26193]: [192.168.10.10:53318->124.225.191.19:443]: dropping client (R/W), relay (R/W), idle 0.000234s Oct […]