Use hasMany of Laravel Eloquent to develop infinite classification
In the online shopping mall, we can often see multi-level classification, sub classification and even unlimited classification. This article will show you how to implement it gracefully through Laravel Eloquent.
We will create a micro project to show the classification of children's shops, with 5 levels in total, as follows:
Database migrati ...
Posted by nitram on Mon, 11 May 2020 00:03:54 -0700
Spring boot Learning Series -- declarative transaction
1, Spring's transaction mechanism
All data access technologies have transaction processing mechanisms, which provide API s to enable transactions, commit transactions to complete data operations, or roll back data in case of errors.
Spring's transaction mechanism is to use a unified mechanism to handle transactions of different data a ...
Posted by fredi_bieging on Mon, 11 May 2020 00:00:46 -0700
An article about TiDB disaster recovery recommendation
An article to play with TiDB disaster recovery
1, Background
High availability is another major feature of TiDB. All three components of TiDB/TiKV/PD can tolerate partial instance failure without affecting the availability of the whole cluster. The following describes the availability of these three components, the consequences of a single ...
Posted by misschristina95 on Sun, 10 May 2020 20:43:02 -0700
Monitoring Software - prometheus+exporter component+grafana
Environmental Science
linux: centos7.6
The most common server system in the company
prometheus: 2.13.1.linux-amd64
Container monitoring solution for numerical data based on time series: with its own data storage and monitoring, it is the official monitoring scheme designated by k8s.
node_exporter: 0.18.1.linux-amd64
Used to collect opera ...
Posted by thegreatone2176 on Sun, 10 May 2020 18:44:50 -0700
Stored Procedures for MySQL
Stored procedures are an important feature of database storage. Stored procedures were not supported by MySQL prior to version 5.0. Stored procedures can greatly improve the processing speed of the database and the flexibility of database programming.1. What is a stored procedure?Stored procedures are a collection of SQL statements that are de ...
Posted by sm on Sun, 10 May 2020 10:17:41 -0700
Docker installs JIRA and Confluence (cracked version)
1. Description
1.1 Material
This paper uses the following materials:
Docker Mirror Github Link
Crack Tool Gitee Link
With these tools, you can theoretically crack almost all versions.
1.2 Database
If you choose an external database, you can create it as follows:
# Create jira database and users
CREATE DATABASE jiradb CHARACTER SET utf8mb4 ...
Posted by stiphu on Sun, 10 May 2020 10:14:43 -0700
Django framework comprehensive explanation -- authentication system (auth)
Auth module is a standard permission management system provided by Django. It can provide user identity authentication, user group management, and can be used in combination with admin module. Add 'django.contrib.auth' in installed Apus to use the app, and the auth module is enabled by default model
from django.contrib ...
Posted by rbastien on Sun, 10 May 2020 07:28:21 -0700
Wechat applets log in to their own applications
My hobby is to make plans, overturn plans, make plans again, and let others supervise my study, supervise my weight loss, and supervise me to change my bad habits. So I'm going to make a little program for myself. The layout of the applet interface is almost finished. Now let's register and log in your application.
1, Applet side:
1,.wxml
<v ...
Posted by Obsession on Sun, 10 May 2020 07:07:06 -0700
Statistics of ASP.NET simple hot words
1, Function introduction
The user enters a character in the search box to associate hot words that begin with that character in a week.
2, Functional design:
1. Hot words list
Insert a piece of data each time you search
CREATE TABLE [dbo].[SearchDetails](
[Id] [uniqueidentifier] NOT NULL,--ID
[KeyWords] [nvarchar](255) NOT NULL,--S ...
Posted by maheshbaba on Sat, 09 May 2020 07:10:29 -0700
How to improve the reliability of RabbitMQ message consumption in human resource management system
Learn how to improve the reliability of RabbitMQ message consumption in human resource management system, and avoid repeated consumption of messages.
1 General
stay How to improve the reliability of RabbitMQ message sending in human resource management system In this paper, we ensure the reliability of message sending. However, under such a mec ...
Posted by ijug.net on Sat, 09 May 2020 02:58:55 -0700