Redis source code reading - data type and coding
catalogue
redis data storage
Data structure and coding
string
embstr
Comparison between embstr and raw
sds
Differences between sds and c language strings:
list
quicklist structure diagram:
set
zset
Implementation principle of zskiplist
skiplist query process
hash
hash structure
summary
redis data storage
redis is an in memory ...
Posted by smook on Thu, 06 Jan 2022 16:10:14 +0100
java database connection
1. What is a data connection pool
Database connection pool( Database Connection Pooling)When the program is initialized, a certain number of database connection objects are created and saved in a memory area, which allows the application to reuse an existing database connection instead of re establishing one; Release the database connection ...
Posted by actionsports on Thu, 06 Jan 2022 16:03:20 +0100
MongoDB introduction and Java development application
Introduction to MongoDB
concept
MongoDB is an open source database system based on distributed file storage. MongoDB is a product between relational database and non relational database. It is the most functional and relational database among non relational databases.
MongoDB is characterized by no Schema restrictions and high flexibility. T ...
Posted by Shadow Hatake on Thu, 06 Jan 2022 13:06:27 +0100
MySQL ---- > > JDBC programming
catalogue
1, What is JDBC
2, Working principle and advantages of JDBC
3, JDBC Usage Summary
1. Create database Connection
2. Create operation command Statement
3. Use the operation command to execute SQL
4. Process ResultSet
5. Release resources
Specific implementation code:
4, JDBC common interfaces and classes
1.JDBC API
2. Databa ...
Posted by droomagon on Thu, 06 Jan 2022 10:45:34 +0100
Redis - publish and subscribe
1-3
See blog Detailed explanation of Redis - publish and subscribe (Part I)
4 send message
When a Redis client executes the PUBLISH command to send a message to the channel, the server needs to perform the following two actions: 1) send message to all subscribers of channel channel. 2) If one or more patterns match the channel, the messa ...
Posted by damo87 on Thu, 06 Jan 2022 09:06:54 +0100
Usage Summary of SQL Server Case when
Case has two formats: simple case function and case search function.
โ simple Case function
The function of a simple Case expression is to use the expression to determine the return value:
select id,name,
case sex
when '1' then 'male'
when '2' then 'female'
else 'other' end
from student
โ search Case function:
Case function (c ...
Posted by vasoftwaresolutions on Thu, 06 Jan 2022 05:02:17 +0100
Xiaodi security Web security PHP development - day 14 - personal blog project & input / output class & message board & access IP&UA header
1, Input / output class
(1) PHP realizes search and query function
1. After obtaining the data input by users, the website connects to the database to retrieve the information input by users, and then returns the search results to users, so as to realize the function of search and query.
2. Code example
(1) index home page, search box
<!DOC ...
Posted by Joshua4550 on Thu, 06 Jan 2022 01:36:44 +0100
[MySQL basics] 07: View
๐ท๏ธ The current chapter is [MySQL basics] 07: view ๐ค ๐ท๏ธ More: MySQL basic tutorial , take you to start MySQL database on a zero basis! ๐ช ๐ท๏ธ Welcome to praise ๐ Collection ๐ Attention โค๏ธ Leaving a message. โ๏ธ
Concept of view
A virtual table composed of data queried by one or more tables in a database according to specific cond ...
Posted by manmadareddy on Wed, 05 Jan 2022 21:33:14 +0100
Database connection pool and BDUtils tool
1, Database connection pool
1. What is a database connection pool
Database connection pool is responsible for allocating, managing and releasing database connections. It allows applications to reuse an existing database connection instead of re establishing one; Release the database connection whose idle time exceeds the maximum idle time ...
Posted by webref.eu on Wed, 05 Jan 2022 21:19:27 +0100
ODBC programming of database programming
ODBC benefits
Good portability Can access different databases at the same time Share multiple data resources
ODBC overview
Causes of ODBC
Due to the existence of different database management systems, applications written under one relational database management system can not run under another relational database management system Many app ...
Posted by 0p3n_p0rT on Wed, 05 Jan 2022 17:50:34 +0100