Tagged articles
9 articles
Page 1 of 1
Architecture Digest
Architecture Digest
Jan 24, 2025 · Backend Development

Why Using 1=1 in SQL Is a Bad Habit and How to Write Cleaner Queries

This article explains why developers often insert the always‑true condition 1=1 in SQL, examines its potential performance and readability drawbacks, and demonstrates cleaner alternatives using MyBatis dynamic tags and Entity Framework to build conditional queries without unnecessary predicates.

Dynamic QueryEntity FrameworkPerformance
0 likes · 7 min read
Why Using 1=1 in SQL Is a Bad Habit and How to Write Cleaner Queries
dbaplus Community
dbaplus Community
Mar 13, 2024 · Databases

Why Developers Use “WHERE 1=1” in SQL Queries

The article explains the practical reasons for adding the always‑true condition “WHERE 1=1” in SQL, covering its role in preventing syntax errors, facilitating dynamic query building, copying tables, and its historical performance impact on MySQL.

Dynamic QuerySQL injectionWHERE clause
0 likes · 6 min read
Why Developers Use “WHERE 1=1” in SQL Queries
Java Interview Crash Guide
Java Interview Crash Guide
Jun 9, 2023 · Backend Development

Bean Searcher vs MyBatis Plus: Which Dynamic Query Tool Wins?

Bean Searcher and MyBatis Plus both enable dynamic queries in Java, but they differ in ORM dependence, query syntax, operator flexibility, logical grouping, multi‑table support, and ideal use cases, with Bean Searcher offering dynamic operators and one‑line controller code while MyBatis Plus excels in transactional operations.

Bean SearcherDynamic QueryJava ORM
0 likes · 19 min read
Bean Searcher vs MyBatis Plus: Which Dynamic Query Tool Wins?
Selected Java Interview Questions
Selected Java Interview Questions
Jun 6, 2023 · Backend Development

Comparing MyBatis‑Plus and Bean Searcher: Core Differences, Advanced Queries, and Practical Use Cases

This article compares MyBatis‑Plus and Bean Searcher, detailing their basic differences, dynamic query capabilities, logical grouping, multi‑table joins, performance benchmarks, supported databases, and recommended usage scenarios, while providing extensive code examples and best‑practice recommendations for backend developers.

Bean SearcherDynamic Querybackend-development
0 likes · 17 min read
Comparing MyBatis‑Plus and Bean Searcher: Core Differences, Advanced Queries, and Practical Use Cases
Top Architect
Top Architect
Jun 1, 2022 · Backend Development

Implementing Dynamic Queries with Spring Data Querydsl

This article explains how to use Spring Data Querydsl to parse and execute flexible, type‑safe dynamic queries, covering request definition, Google‑like and field‑specific query formats, integration with Spring repositories, predicate building, boolean expression handling, and challenges when querying nested collections.

Dynamic QueryPredicateQuerydsl
0 likes · 19 min read
Implementing Dynamic Queries with Spring Data Querydsl
macrozheng
macrozheng
Dec 16, 2021 · Backend Development

How to Build Complex Search APIs with Bean Searcher in One Line of Code

Learn how Bean Searcher enables Java backend developers to replace dozens of lines of ORM code with a single, flexible query method, supporting multi-table joins, dynamic filters, pagination, sorting, and custom operators, dramatically boosting development efficiency for complex list retrieval scenarios.

Bean SearcherDynamic QueryORM
0 likes · 17 min read
How to Build Complex Search APIs with Bean Searcher in One Line of Code
Top Architect
Top Architect
Mar 24, 2021 · Databases

Understanding the Use of WHERE 1=1 in Dynamic SQL

The article explains why developers insert the clause "WHERE 1=1" in dynamically generated SQL statements, shows example Java code, discusses how it prevents syntax errors when concatenating AND conditions, and offers advice on adding selective filters and indexes to avoid full table scans.

Database OptimizationDynamic QueryWHERE clause
0 likes · 3 min read
Understanding the Use of WHERE 1=1 in Dynamic SQL
Wukong Talks Architecture
Wukong Talks Architecture
Feb 1, 2020 · Backend Development

Advanced Query Techniques in MyBatis-Plus: Date Filtering, Subqueries, and Dynamic SQL with apply and inSql

This article demonstrates how to use MyBatis-Plus for complex queries—including date filtering, sub‑queries, INNER JOIN, dynamic SQL with the apply method, and the inSql helper—while highlighting potential SQL‑injection pitfalls and providing complete runnable code examples.

Dynamic Querybackend-developmentjava
0 likes · 6 min read
Advanced Query Techniques in MyBatis-Plus: Date Filtering, Subqueries, and Dynamic SQL with apply and inSql
Dada Group Technology
Dada Group Technology
Jul 24, 2018 · Operations

Building a Scalable Growth Operations Platform: User Grouping, Dynamic Queries, and Automation

The article describes how a growth operations team can improve efficiency by designing a flexible user‑grouping system, dynamic query generation, and automated rule execution, while addressing data latency, real‑time processing, and scalability challenges through a Lambda‑style architecture.

Dynamic QueryLambda architectureUser Segmentation
0 likes · 14 min read
Building a Scalable Growth Operations Platform: User Grouping, Dynamic Queries, and Automation