Fading Coder

One Final Commit for the Last Sprint

Optimizing MySQL Queries: Joins, Sorting, Pagination, Subqueries, and Group By

Optimizing Join Queries 1. Setup for Testing CREATE TABLE IF NOT EXISTS category( id INT UNSIGNED NOT NULL AUTO_INCREMENT, ref_code INT UNSIGNED NOT NULL, PRIMARY KEY(id) ); CREATE TABLE IF NOT EXISTS item( item_id INT UNSIGNED NOT NULL AUTO_INCREMENT, ref_code INT UNSIGNED NOT NULL, PRIMARY KEY(ite...

Common Lock Types in MySQL

MySQL implements various lock types to manage concurrency and ensure data consistency. Locks are categorized by granularity: global, table-level, and row-level. Global Lock A global lock restricts the entire database instance to read-only mode, blocking DML write statements, DDL operations, and tran...

MySQL Slow Query Log Setup and Troubleshooting for Performance Testing

Core MySQL Performance Monitoring Metrics Slow Query Definition Slow queries refer to SQL statements whose execution duration exceeds a predefined threshold. This logging capability helps teams identify poorly performing queries to target database performance optmiization efforts. Enable Slow Query...

University Laboratory Management System with Vue.js and Spring Boot

Laboratory Category Management This component enables administrators to classify and manage various types of laboratories. By grouping labs into categories, it facilitates unified management, maintenance, and policy application. For instance, safety protocols and staff qualifications can be standard...

Practical MySQL Table Operations: Creating, Indexing, Views, and Stored Procedures

Creating Depratment and Employee Tables with Data Insetrion 1. Departmant Table Creation CREATE TABLE departments ( department_id INT PRIMARY KEY AUTO_INCREMENT COMMENT 'Department ID', department_name VARCHAR(50) COMMENT 'Department Name' ); 2. Inserting Department Data INSERT INTO departments (dep...

Creating Databases with SQL Commands

SQL (Structured Query Language) is the standard language for managing relational databases. To create a database, you must have a database management system (DBMS) installed, such as MySQL, PostgreSQL, or SQLite, and apropriate privileges, typical administrative or database creation rights. Connect...

Implementing Remote MySQL Database Backups with mysqldump

Core Process Overview The fundamental procedure involves three sequential steps: Export the target database using the mysqldump utility. Compress the resulting SQL dump file. Secure transfer the compressed archive to a designated remote backup server. Security and Connectivity Considerations In typi...

Essential MySQL Query Operators and Techniques

IN and NOT IN Operators Use the IN operator to filter records matching any value in a specified list. Conversely, NOT IN excludes records matching values in the list. Retrieve records where supplier_id is 101 or 102: SELECT supplier_id, supplier_name FROM products WHERE supplier_id IN (101, 102); Re...

Building a Homestay Booking System for Android with Spring Boot

This article outlines the development of a homestay booking application for the Android platform. The system is designed to provide users with a mobile interface for browsing available accommodations, viewing announcements, and managing bookings. It serves three primary user roles: administrators, g...

Installing MySQL on Ubuntu 16.04: A Comprehensive Guide

This guide outlines multiple methods for installing MySQL on Ubuntu 16.04, covering APT repository, offline DEB bundle, and binary tarball installations. Installation Method Overview Before installation, consider the following: APT Installation: Simplest method using Ubuntu's package manager. Automa...