mybatis implements L2 cache

Course objectives Integrated ehcache 1, Mybatis integrated ehcache 1. Why cache Pull up program performance 2. What kind of data needs to be cached Data that is rarely modified or not modified at all Business scenarios, such as time-consuming statistical analysis sql, telephone bill query sql, etc 3. What is ehcache Ehcache ...

Posted by healthbasics on Mon, 27 Dec 2021 13:11:28 +0100

redis detailed notes

redis detailed notes xxd 2021 / 12 / 03 Beijing 1, Getting started with redis redis installation 1. Download redis-5.0 7.tar. GZ and put it in our Linux directory / opt 2. In the / opt directory, unzip the command: tar -zxvf redis-5.0 7.tar. gz 3. After decompression, a folder appears: redis-5.0 seven 4. Enter the directory: CD redis-5. ...

Posted by FlashHeart on Sat, 25 Dec 2021 10:52:05 +0100

Four states of Hibernate entity objects

First, declare that in Hibernate, entity objects have four states, not three (see org.hibernate.event.def.AbstractSaveEventListener). The three states of Hibernate objects circulated on the Internet are probably because the official hibernate documents are not updated. After one person writes, copy one by one, you know. state invariant /** ...

Posted by robburne on Tue, 21 Dec 2021 22:26:08 +0100

Blasting column - springboot2 Integrating MongoDB cache commodity information in X Series tutorials

preface In the previous chapter, Yige} introduced how to integrate Redis in SpringBoot, and then realized the caching of the content queried in MySQL into Redis. In fact, if we want to achieve caching effect, we can also use another NoSQL type database, MongoDB. This article will take you to integrate MongoDB in SpringBoot and learn the basic ...

Posted by hame22 on Mon, 20 Dec 2021 19:33:14 +0100

spring boot advanced - cache, message

1. Cache 1.1JSR-107 Original quotation: Profiling cache series - familiar with JSR-107 JAVA cache specification What is JSR-107? JSR is the abbreviation of Java Specification Requests, which means Java specification proposal. On October 26, 2012, the JSR specification committee released the first early draft of JSR 107 (JCache A ...

Posted by scnov on Sat, 18 Dec 2021 23:13:58 +0100

On V8 compilation

Author Yu ZiyiSource: Ali technical official accountI. IntroductionThis article is an introduction to the principles of V8 compilation, which aims to give you a perceptual understanding of the parsing process of JavaScript in V8. The main writing process of this paper is as follows:Interpreter and compiler: introduction to basic knowledge of co ...

Posted by clapton on Sat, 18 Dec 2021 20:39:02 +0100

Mybaits interceptor, purpose of interceptor, mybaits L1 cache

1.mybaits interceptor Original design intention In order for users to implement their own logic at some time without moving the inherent logic of Mybatis. Through the Mybatis interceptor, we can intercept the calls of some methods. We can choose to add some logic before and after the execution of these intercepted methods, or we can execut ...

Posted by thepriest on Fri, 17 Dec 2021 12:51:48 +0100

Redis series - redis persistence (an article lets you know about redis RDB and AOF persistence)

Persistence Redis is an in memory database. It needs to be persistent in case of power failure and power loss. RDB is used by default. Generally, we can use it without modifying RDB configuration. RDB (Redis DataBase) What is RDB Redis will create a fork subprocess separately for persistence. In the subprocess, it will cycle all data and wr ...

Posted by mewright on Thu, 16 Dec 2021 06:47:21 +0100

Major manufacturers are using EhCache. Where is it better than Redis?

Story backgroundWith the decline of hardware price, people rely more and more on hardware. I even heard that the code is not important. If not, add machines. For example, the use of cache is usually based on virtual machine memory, disk storage and Middleware (Redis memory). We all know that the most suitable is the best, but in practice, it is ...

Posted by unlishema.wolf on Wed, 15 Dec 2021 18:38:32 +0100

What if the query is too slow - add cache

preface Many friends may encounter a large amount of data, and your interface query is particularly slow. If so, there are many processing schemes, such as changing your serial query to parallel query, optimizing sql and indexing. Finally, there is no way to add cache. Because caching will cause the cached data to be different from the data in ...

Posted by pacmon on Wed, 15 Dec 2021 15:27:56 +0100