Spring Boot with MyBatis Transaction Management Setup
Maven Dependencies
Add the following dependencies to you're pom.xml:
<!-- MyBatis integration for Spring Boot -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.1</version>
</dependency>
<!-- MySQL ...
Posted on Sun, 07 Jun 2026 16:41:13 +0000 by frost
Setting Up an LNMP Stack with Nginx, PHP, MySQL, and phpMyAdmin Using Docker Compose
Why Use Docker Compose?
While its possible to manually run individual containers for Nginx, PHP, and MySQL, managing them becomes tedious when configuration changes are needed. Without an orchestration tool, updating a setting requires stopping the container, removing it, and running a new docker run command with the updated parameters.
Docker ...
Posted on Sat, 06 Jun 2026 16:25:59 +0000 by R0CKY
MySQL Architecture, Concurrency & Performance Tuning
Server Layers and Storage Engines
MySQL is split into three logical layers:
Connection & Authentication – handles client hand-shake, privilege checks, SSL, thread pooling.
SQL Layer – parses, optimizes, rewrites and executes statements. All built-in functions, views, triggers, stored procedures live here. The query cache was removed in 8.0 ...
Posted on Fri, 05 Jun 2026 17:46:48 +0000 by Jas
Implementing Database Sharding and Read-Write Splitting with Mycat
Database Shardign Implementation
Mycat Installation and Configuration
Download Mycat from the official repository. For Linux environments, extract the package using:
tar -xvf Mycat-server-1.6.7.1-release-*.tar.gz
The extracted directory includes:
bin: executable scripts
conf: configuration files (schema.xml, server.xml, rule.xml)
lib: require ...
Posted on Thu, 04 Jun 2026 19:21:20 +0000 by visualed
Integrating Python with MySQL for Database Operations
Working with SQL proficiency forms the basis for using Python modules to interact with MySQL in production tasks.
Installing and Importing the Driver
Install the MySQL driver via package manager:
pip install PyMySQL
Import the module in code:
import pymysql
Connection Object
Establishes a link to the database. Instantiate it using pymysql.con ...
Posted on Wed, 03 Jun 2026 17:24:54 +0000 by kusarigama
Essential MySQL Command Parameters
1. Common mysql Command Options
1. --auto-rehash (tab completion for table names and fields)
# mysql -u root --auto-rehash
# vim my.cnf
[mysql]
auto-rehash
2. -B (disable history file, non-interactive mode)
# mysql -uroot -D test -e "show tables;" -B
3. -E (vertical output for query results)
# mysql -uroot -D test -e "sho ...
Posted on Wed, 03 Jun 2026 16:33:41 +0000 by Vinze
Retrieving Database Table Columns in Java Applications
Database Connection Setup
Establishing a connection to the database is the initial requirement for acessing table metadata. The JDBC API provides the necessary tools for this operation.
import java.sql.*;
public class DatabaseMetadataReader {
private static final String DB_URL = "jdbc:mysql://localhost:3306/test";
private sta ...
Posted on Wed, 03 Jun 2026 16:14:32 +0000 by vidhu
Calculating Capital Gains and Losses from Stock Transactions
The Stocks table schema is defined as follows:
Column Name
Type
stock_name
varchar
operation
enum
operation_day
int
price
int
The primary key for this table is the combination of stock_name and operation_day. The operation column is an enumeration containing ('Buy', 'Sell'). Each row represents a transaction made on a specific s ...
Posted on Tue, 02 Jun 2026 18:08:55 +0000 by hush2
Conditional Logic in MySQL Using CASE Expressions
Conditional Expression Syntax
MySQL supports two forms of conditional expressions using the CASE construct for implementing decision-making logic within queries.
Simple CASE Based on Column Values
The simple form compares a specific column's value against predefined constants:
CASE column_expression
WHEN constant_value_1 THEN return_value_1 ...
Posted on Tue, 02 Jun 2026 17:36:31 +0000 by pristanski
Web Scraping with Feapder: Architecture, Configuration, and Browser Rendering
Framework Overviewfeapder is a robust Python scraping framework that simplifies data extraction through four built-in spider templates: AirSpider, Spider, TaskSpider, and BatchSpider. It natively supports resumable crawling, alert notifications, browser rendering, and large-scale data deduplication. Deployment and scheduling are managed via the ...
Posted on Tue, 02 Jun 2026 16:22:41 +0000 by Ekano