Tag

stored procedures

0 views collected around this technical thread.

Architect
Architect
Dec 12, 2024 · Databases

Design and Implementation of MySQL SQL Flow‑Control (Throttling) Feature

This document details the purpose, requirements, architecture, detailed design, performance impact, and limitations of a MySQL kernel extension that throttles SQL statements based on configurable flow‑control rules to protect core services from CPU overload caused by heavy or slow queries.

Database flow controlMySQLPerformance Optimization
0 likes · 13 min read
Design and Implementation of MySQL SQL Flow‑Control (Throttling) Feature
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 2, 2024 · Databases

Using EXPLAIN INTO and EXPLAIN FOR SCHEMA in MySQL 8.1 and 8.2

This article explains the new EXPLAIN INTO clause introduced in MySQL 8.1 for storing JSON‑formatted EXPLAIN output in a user variable and the EXPLAIN FOR SCHEMA clause added in MySQL 8.2 for running EXPLAIN on other schemas, showing how to extract costs with JSON functions and automate collection with stored procedures.

DatabaseEXPLAINJSON
0 likes · 7 min read
Using EXPLAIN INTO and EXPLAIN FOR SCHEMA in MySQL 8.1 and 8.2
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 24, 2022 · Databases

Enforcing MySQL SELECT Timeout When max_execution_time Does Not Apply

This article explains the limitations of MySQL's max_execution_time for SELECT statements inside stored procedures and provides practical solutions—including external kill scripts and the Percona Toolkit's pt‑kill—to enforce query timeouts while warning against use in production environments.

MySQLmax_execution_timept-kill
0 likes · 7 min read
Enforcing MySQL SELECT Timeout When max_execution_time Does Not Apply
Architecture & Thinking
Architecture & Thinking
Feb 10, 2022 · Databases

MySQL Custom Functions: How to Create, Use, and Compare with Stored Procedures

This guide explains MySQL custom functions, covering their definition, advantages over stored procedures, step‑by‑step creation syntax, parameter handling, invocation, and management commands such as showing, altering, and dropping functions, with practical examples for both parameterless and parameterized functions and a concise comparison table.

DatabaseMySQLSQL
0 likes · 6 min read
MySQL Custom Functions: How to Create, Use, and Compare with Stored Procedures
Top Architect
Top Architect
Aug 22, 2021 · Databases

Why Using Stored Procedures for Simple Existence Checks Can Be Problematic

The article examines a real‑world scenario where a developer tried to reuse existing stored procedures to merely check the presence of Job, Certification, and Disclosure records, discusses the pitfalls of such an approach, and explains why storing this logic in T‑SQL is often fragile and hard to maintain.

DatabaseSQLcode reuse
0 likes · 6 min read
Why Using Stored Procedures for Simple Existence Checks Can Be Problematic
Python Programming Learning Circle
Python Programming Learning Circle
Aug 2, 2021 · Databases

Comprehensive Guide to Relational Database Concepts and SQL Syntax

This article provides a detailed tutorial on relational database fundamentals, covering key terminology, SQL syntax, DDL/DML/DCL/TCL commands, query clauses, joins, set operations, functions, aggregation, indexing, constraints, transactions, permission management, stored procedures, cursors, and triggers with practical code examples.

DDLDMLDatabase
0 likes · 20 min read
Comprehensive Guide to Relational Database Concepts and SQL Syntax
Architecture Digest
Architecture Digest
Jun 12, 2021 · Databases

Why Reusing Stored Procedures Can Be Problematic: A Practical Example with Job, Certification, and Disclosure Checks

This article examines the pitfalls of reusing existing SQL stored procedures to determine the presence of Job, Certification, and Disclosure data for a user, illustrating maintenance challenges with temporary tables, output parameters, and code‑reuse limitations through concrete code examples.

BackendDatabase DesignSQL
0 likes · 5 min read
Why Reusing Stored Procedures Can Be Problematic: A Practical Example with Job, Certification, and Disclosure Checks
Selected Java Interview Questions
Selected Java Interview Questions
Apr 22, 2021 · Databases

Key MySQL Concepts: DROP/DELETE/TRUNCATE, Data Types, Storage Engines, Transactions, Views, Procedures, Indexes, UNION, and SQL Language Parts

This article explains the differences between DROP, DELETE, and TRUNCATE, recommends appropriate MySQL data types for monetary values, compares MyISAM and InnoDB storage engines, outlines transaction ACID properties, describes views, stored procedures versus triggers, indexes, UNION vs UNION ALL, and lists the main SQL language categories.

DatabaseIndexesMySQL
0 likes · 10 min read
Key MySQL Concepts: DROP/DELETE/TRUNCATE, Data Types, Storage Engines, Transactions, Views, Procedures, Indexes, UNION, and SQL Language Parts
Architecture Digest
Architecture Digest
Apr 10, 2021 · Databases

Comprehensive Guide to SQL Syntax, Operations, and Advanced Database Features

This article provides a thorough overview of relational database fundamentals, covering basic concepts, SQL syntax, DML and DDL commands, functions, joins, unions, grouping, ordering, transactions, permission management, stored procedures, cursors, and triggers, complete with illustrative code examples.

DDLDMLDatabase
0 likes · 21 min read
Comprehensive Guide to SQL Syntax, Operations, and Advanced Database Features
Top Architect
Top Architect
Oct 13, 2020 · Databases

Why Reusing Stored Procedures Is Tricky: Counting Results and Maintaining Code

The article examines the difficulties of reusing SQL Server stored procedures to obtain simple boolean checks, illustrates a concrete example of counting jobs with temporary tables, discusses maintenance pitfalls, and concludes that business logic is often better implemented outside stored procedures.

Database DesignSQLT-SQL
0 likes · 6 min read
Why Reusing Stored Procedures Is Tricky: Counting Results and Maintaining Code
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 21, 2020 · Databases

Comprehensive MySQL Tutorial: Basics, Commands, Data Types, Constraints, Functions, Joins, Stored Procedures, and Transactions

This article provides a detailed, step‑by‑step guide to MySQL covering its purpose, installation, directory layout, common commands, data types, table creation and modification, constraints, functions, subqueries, joins, custom functions, stored procedures, transaction control, and user management, illustrated with extensive code examples and screenshots.

DatabaseMySQLSQL
0 likes · 31 min read
Comprehensive MySQL Tutorial: Basics, Commands, Data Types, Constraints, Functions, Joins, Stored Procedures, and Transactions
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 22, 2020 · Databases

Comprehensive Guide to MySQL Storage Engines, Data Types, Indexes, Views, Stored Procedures, and Triggers

This article provides an in‑depth overview of MySQL, covering storage engine concepts, selecting appropriate data types, index design and usage, view creation, stored procedure syntax, variable handling, and trigger implementation, with practical examples and SQL code snippets to illustrate each topic.

DatabaseIndexesMySQL
0 likes · 25 min read
Comprehensive Guide to MySQL Storage Engines, Data Types, Indexes, Views, Stored Procedures, and Triggers
Laravel Tech Community
Laravel Tech Community
Jul 16, 2020 · Databases

Comprehensive Guide to SQL Syntax, Commands, and Operations

This article provides a comprehensive overview of relational database fundamentals and SQL syntax, covering basic concepts, statement categories (DDL, DML, TCL, DCL), CRUD operations, subqueries, joins, unions, functions, ordering, grouping, constraints, transactions, permission management, stored procedures, cursors, and triggers with illustrative code examples.

DDLDMLDatabase
0 likes · 23 min read
Comprehensive Guide to SQL Syntax, Commands, and Operations
Top Architect
Top Architect
May 14, 2020 · Databases

Why Using Stored Procedures for Simple Boolean Checks Can Be Problematic

The article discusses a real‑world scenario where a developer tried to reuse existing stored procedures to determine the presence of Job, Certification, and Disclosure records, explores various T‑SQL techniques such as temporary tables and output parameters, and concludes that stored procedures are often unsuitable for simple boolean logic due to maintenance and reuse challenges.

CDatabase DesignSQL
0 likes · 6 min read
Why Using Stored Procedures for Simple Boolean Checks Can Be Problematic
AntTech
AntTech
Oct 7, 2019 · Databases

OceanBase TPC‑C Benchmark: SQL Optimization and Storage‑Procedure Techniques

This article, the third in a five‑part series on OceanBase’s record‑breaking TPC‑C results, explains the SQL‑level challenges faced during the benchmark and details the optimizations—including stored procedures, LLVM‑based compilation, array binding, prepared statements, and updatable views—that enabled the performance gains.

Database PerformanceOLTPOceanBase
0 likes · 11 min read
OceanBase TPC‑C Benchmark: SQL Optimization and Storage‑Procedure Techniques
Efficient Ops
Efficient Ops
Jul 16, 2018 · Databases

Master MySQL Advanced Features: Partitioning, Views, Triggers, and More

This article explores MySQL’s advanced capabilities—including partition tables, views, stored procedures, triggers, foreign‑key constraints, bind variables, user‑defined functions, and character‑set considerations—explaining their principles, usage patterns, performance impacts, and best‑practice recommendations for handling large‑scale data.

Foreign KeysMySQLTriggers
0 likes · 34 min read
Master MySQL Advanced Features: Partitioning, Views, Triggers, and More