Tagged articles
20 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Nov 16, 2025 · Fundamentals

Convert Serial Bytes to Float in Embedded C with Unions and Endianness

This article explains how to reconstruct a 32‑bit floating‑point value from four serial bytes in embedded C by using a union or struct overlay, demonstrates the code, shows the resulting little‑endian byte order, and provides a simple function to detect system endianness.

CSerial CommunicationUNION
0 likes · 5 min read
Convert Serial Bytes to Float in Embedded C with Unions and Endianness
Java Tech Enthusiast
Java Tech Enthusiast
Oct 13, 2025 · Databases

Why OR Queries Break MySQL Indexes and How to Fix Them

This article explains how MySQL OR conditions can cause index loss, demonstrates typical scenarios with multi‑field, range, and dynamic filters, and provides practical solutions such as using UNION/UNION ALL or adding appropriate indexes to restore efficient query performance.

Index OptimizationOR querySQL
0 likes · 7 min read
Why OR Queries Break MySQL Indexes and How to Fix Them
Senior Brother's Insights
Senior Brother's Insights
Oct 7, 2025 · Databases

Why MySQL OR Queries Often Skip Indexes—and How to Fix Them

This article explains how MySQL's OR conditions can cause index loss, provides concrete query examples, analyzes why the optimizer falls back to full table scans, and offers practical solutions such as rewriting with UNION or adding missing indexes to restore efficient index usage.

Index OptimizationOR querySQL
0 likes · 7 min read
Why MySQL OR Queries Often Skip Indexes—and How to Fix Them
ITPUB
ITPUB
Aug 27, 2023 · Databases

How to Use Redis Sets for Powerful Intersection, Union, and Difference Statistics

This article explains how to leverage Redis Set, Sorted Set, Bitmap, and HyperLogLog data structures for various statistical scenarios such as user sign‑in tracking, friend recommendations, comment ranking, and UV counting, while addressing performance and memory considerations.

BitmapDifferenceHyperLogLog
0 likes · 11 min read
How to Use Redis Sets for Powerful Intersection, Union, and Difference Statistics
Liangxu Linux
Liangxu Linux
Jul 30, 2023 · Fundamentals

5 Little‑Known C Tricks That Can Boost Your Code

This article explores five obscure yet useful C language features—enum bit‑fields, label‑and‑goto error handling, varargs functions, unconventional union usage, and conditional compilation—providing clear explanations and code examples to help programmers write more flexible and efficient code.

Advanced TechniquesCEnum Bitfields
0 likes · 5 min read
5 Little‑Known C Tricks That Can Boost Your Code
dbaplus Community
dbaplus Community
Apr 2, 2023 · Big Data

Unlock Faster ODPS SQL: Proven UNION, COUNT DISTINCT, and Join Optimizations

This article walks through common ODPS SQL scenarios—union, count distinct, large‑table joins, mapjoin, and predicate placement—explains why naïve implementations can be inefficient, shows how to read and interpret execution plans, and provides concrete rewritten queries that dramatically improve performance and resource usage.

Big DataCOUNT DISTINCTMapJoin
0 likes · 17 min read
Unlock Faster ODPS SQL: Proven UNION, COUNT DISTINCT, and Join Optimizations
ITPUB
ITPUB
Mar 25, 2023 · Big Data

Mastering Efficient SQL in ODPS: Union, Count‑Distinct, and Join Optimizations

This article walks through common SQL development scenarios on ODPS, examining why naïve UNION and COUNT DISTINCT can be slow, how to rewrite queries with GROUP BY, UNION ALL, JSON aggregation, and map‑join techniques, and shows the resulting execution‑plan improvements with concrete code and performance numbers.

Big DataCountDistinctMapJoin
0 likes · 17 min read
Mastering Efficient SQL in ODPS: Union, Count‑Distinct, and Join Optimizations
AI Cyberspace
AI Cyberspace
Mar 3, 2023 · Fundamentals

Master C Enums and Unions: Practical Guide with Code Examples

This article explains C enumeration and union types, covering their definitions, common use cases, declaration syntax, variable creation, usage in switch statements and loops, and demonstrates how to access and correctly use union members with clear code examples.

CTutorialUNION
0 likes · 8 min read
Master C Enums and Unions: Practical Guide with Code Examples
DataFunSummit
DataFunSummit
Feb 9, 2023 · Databases

Comprehensive Guide to Multi-Table Queries and Joins in SQL

This article explains multi‑table SQL queries, detailing Cartesian products, various join types (inner, left/right/full outer, self‑join, natural join, USING), UNION operations, and provides practical examples and exercises to illustrate correct join syntax and performance considerations.

Cross JoinJoinsSQL
0 likes · 18 min read
Comprehensive Guide to Multi-Table Queries and Joins in SQL
Big Data Technology & Architecture
Big Data Technology & Architecture
Jul 28, 2022 · Big Data

Spark SQL UNION Causing driver.maxResultSize Error and Its Resolution

When executing a Spark SQL query with dozens of UNION subqueries that each contain JOIN operations on Spark 3.1.2, the job fails because the total serialized result size of the tasks exceeds the driver’s maxResultSize limit, and the issue can be resolved by reducing the initial partition number used by Adaptive Query Execution.

DriverMaxResultSizePerformanceTuningSQL
0 likes · 10 min read
Spark SQL UNION Causing driver.maxResultSize Error and Its Resolution
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 28, 2022 · Databases

Understanding and Using UNION in MySQL 8.0

This article explains the purpose, syntax rules, and practical examples of the UNION operator in MySQL, covering distinct and ALL modes, ORDER BY restrictions, new TABLE and VALUES usages introduced in MySQL 8.0.19, and differences from MySQL 5.7.

CodeExamplesMySQL8UNION
0 likes · 8 min read
Understanding and Using UNION in MySQL 8.0
ITPUB
ITPUB
Nov 27, 2018 · Databases

Boost MySQL Performance: Field Types, JOIN vs Subqueries, UNION, and Transactions

This guide presents four practical MySQL performance‑boosting techniques—selecting optimal column types, replacing sub‑queries with JOINs, using UNION instead of temporary tables, and employing transactions with BEGIN/COMMIT/ROLLBACK—to make queries faster and ensure data integrity.

Database TuningJOINPerformance Optimization
0 likes · 6 min read
Boost MySQL Performance: Field Types, JOIN vs Subqueries, UNION, and Transactions
ITPUB
ITPUB
Feb 6, 2017 · Information Security

Mastering SQL Injection: Types, Techniques, and Real‑World Examples

This article provides a practical introduction to SQL injection, covering its fundamentals, common attack vectors such as Boolean‑based, error‑based, and UNION‑based injections, step‑by‑step exploitation examples with PHP code, and tips for constructing payloads and understanding their impact on vulnerable web applications.

Boolean-basedDatabase ExploitationError-based
0 likes · 13 min read
Mastering SQL Injection: Types, Techniques, and Real‑World Examples