当前位置:网站首页>What is data persistence?
What is data persistence?
2022-06-25 04:28:00 【Life is sweet and good luck is good】
1. What is persistence ?
In a narrow sense :“ Persistence ” It only means to save the domain object permanently to the database ;
In a broad sense ,“ Persistence ” Including various operations related to database .
● preservation : Permanently save the domain object to the database .
● to update : Update the status of domain objects in the database .
● Delete : Delete a domain object from the database .
● load : According to the specific OID, Load a domain object from the database into memory .
● Inquire about : According to specific query conditions , Load one or more domain objects that meet the query conditions from the database into the internal memory .
2. Why persistence ?
Persistence technology encapsulates the details of data access , Provide object-oriented services for most business logic API.
● Through Persistence technology, you can reduce the number of times to access database data , Increase application execution speed ;
● High code reusability , Able to complete most database operations ;
● Loose coupling , Make persistence independent of the underlying database and the upper business logic implementation , When changing the database, you only need to modify the configuration file without modifying the code .
边栏推荐
- 95% 程序员都在这里摸鱼……
- Openmmlab environment configuration
- 代錶多樣性的彩色 NFT 系列上線 The Sandbox 市場平臺
- Turn 2D photos into 3D models to see NVIDIA's new AI "magic"!
- Synchronous and asynchronous functions (callback function, promise, generator, async/await)
- Shutter fittedbox component
- Communication problems in parent and child components of uniapp
- The yii2 debug toolbar is missing
- Numpy NP tips: use OpenCV to interpolate and zoom the array to a fixed shape cv2 resize(res, dsize=(64, 64), interpolation=cv2. INTER_ CUBIC)
- Color NFT series representing diversity launched on the sandbox market platform
猜你喜欢

PHP code audit 1 - php Ini
![[openwrt] we recommend a domestically developed version of openwrt, an introduction to istoreos. It is very easy to use. It is mainly optimized. It solves the problem of Sinicization.](/img/62/6152d5a30c92a340cb286c7b1cbc54.png)
[openwrt] we recommend a domestically developed version of openwrt, an introduction to istoreos. It is very easy to use. It is mainly optimized. It solves the problem of Sinicization.

1. first knowledge of chromatic harmonica
![Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding](/img/ad/69fce7cf064479a0ddd477fb935de2.png)
Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding

Simple integration of client go gin 11 delete

AI quantitative transaction (II) -- tushare financial data framework

Error 1062 is reported during MySQL insertion, but I do not have this field.

Cesium graphic annotation circle, square, polygon, ellipse, etc

"Comment positionner l'industrie" dans la planification industrielle locale / parc

The 5th series of NFT works of missing parts was launched on the sandbox market platform
随机推荐
What is the difference between learning code, rolling code and fixed code? The number of repeated codes, coding capacity and the principle of rolling code
5 key indicators of SEO: ranking + traffic + session + length of stay + bounce rate
ThinkPHP is integrated with esaywechat. What's wrong with wechat payment callback without callback?
Mathematical analysis_ Notes_ Chapter 3: limits
Hello CTP (II) -- Introduction to CTP
Turn 2D photos into 3D models to see NVIDIA's new AI "magic"!
讲座记录《捷联惯导解算的历史及发展》
Laravel document sorting 11. System architecture
关于TCP连接四次握手(或者叫四次挥手)的详细总结
95% of programmers fish here
Acmstreamopen return value problem
Nodejs connects to MySQL through heidisql, and ER appears_ BAD_ DB_ ERROR: Unknown database 'my_ db_ books'
OBS Browser+浏览器的基本使用
Lecture record: history and development of strapdown inertial navigation solution
"Comment positionner l'industrie" dans la planification industrielle locale / parc
论文阅读《LSD-SLAM: Large-Scale Direct Monocular SLAM》
讲座记录《惯性导航的新应用——惯性测量》
Hello CTP (I) - basic knowledge of futures
[proteus simulation] Arduino uno key controls the flashing increase / decrease display of nixie tube
【openwrt】推荐一个国内开发的openwrt的版本,iStoreOS简介,非常好用,主要是做了一些优化。解决了汉化的问题。