MyBatis

MyBatis 1. forEach cycle The attributes of   forEach element mainly include item, idnex, collection, open, separator, close. collection: incoming List or Array or self encapsulated Map. item: alias of the element iteration in the collection. idnex: index of element iteration yes in the collection. open: where is followed by what to start ...

Added by mohson on Sat, 07 Dec 2019 20:03:54 +0200

Preliminary interpretation of mysql execution plan 2

Continue the part of execution plan that was not completed last time6. The possible indexes used by possible keys. This understanding indicates the possible indexes used in query. It may be used, but not necessarily. If it is empty, there must be no relevant index. But if there is value, it may not be used.7. Index actually used by key.Let's l ...

Added by dc277 on Sat, 07 Dec 2019 14:47:24 +0200

Database version management tool Liquibase

The process of R & D often involves database changes, the repair of table structure and the modification of data. In order to ensure that each environment can be changed correctly, we may need to maintain a database upgrade document to save these records. The environment that needs to be upgraded will be upgraded according to the document. ...

Added by tariel on Sat, 07 Dec 2019 09:31:11 +0200

Phoenix duplicate record -- the reason and solution of duplicate query data

Problem description issue A: after turning on the parameter (phoenix.stats.enabled=true), use Phoenix SQL to query the data, and there are duplicates (the data found is more than the actual content stored in HBase) issue B: after the parameter is closed (phoenix.stats.enabled=false), Phoenix SQL performance decreases. Environmental Science Phoe ...

Added by evan18h on Fri, 06 Dec 2019 21:55:32 +0200

oracle rookie learning self connect query experiment

Creation of experiment table Table field description: id:Employee numbername: Employee nameano: Manager No create table admin(id varchar2(4),name varchar2(10),ano varchar2(4)); insert into admin values('001','XiongDa','004'); insert into admin values('002','XiongEr','004'); insert into admin values('003','ZhangSan','003'); insert into admin ...

Added by stuart7398 on Fri, 06 Dec 2019 17:19:16 +0200

Spring executes sql script (file)

This article solves the problem of Spring executing SQL script (file). The scene description can be ignored. Scenario Description: When I run a single test, that is, when the Spring project is started, Spring will execute classpath:schema.sql (explained later). I want to use this to solve a problem: Run multiple test files at a time, and each f ...

Added by golfinggod on Fri, 06 Dec 2019 11:40:08 +0200

MySQL big data table horizontal partition optimization

Change the large running table to a partitioned table The code of this article is limited to monthly horizontal partition based on data time. Other requirements can be implemented by modifying the code 1. Create a partition table The table field of this table is the same as that of the original table, with partition CREATE TABLE `metric_data_tm ...

Added by CrimsonSoul on Tue, 03 Dec 2019 04:40:27 +0200

spring boot2 using log4j2

spring boot uses logback by default. I've seen many places saying that logback consumes more performance than log4j. I haven't tried it, but I still use log4j more personally.   Look at pom dependency first <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter ...

Added by mitchell on Sun, 01 Dec 2019 23:00:56 +0200

jdbc linked database

JDBC introduction The full name of JDBC is java data base connectivity, which can provide unified access to a variety of databases. JDBC is a set of database access programming interface developed by sun, which is a SQL level API. It is written by java language, so it has good cross platform characteristics. The database application written by ...

Added by mallard on Sat, 30 Nov 2019 16:33:25 +0200

Main note: Troubleshooting Guide for automatic Undo management (Doc ID 1579081.1)

Master Note: Troubleshooting guide for Automatic Undo Management (Doc ID 1579081.1) APPLIES TO: Oracle Database - Enterprise Edition - Version 9.2.0.1 to 12.1.0.1 [Release 9.2 to 12.1]Information in this document applies to any platform. PURPOSE This is a Master Note for troubleshooting the various issues reported on Undo Management. This docu ...

Added by Oren on Fri, 29 Nov 2019 16:06:59 +0200