Tagged articles
4 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 FrameworkMyBatis
0 likes · 7 min read
Why Using 1=1 in SQL Is a Bad Habit and How to Write Cleaner Queries
ITPUB
ITPUB
Oct 6, 2016 · Databases

How Adding Indexes Cut a 30‑Second MySQL View Query to 2 Seconds

A .NET MVC warehouse system’s MySQL view was taking over 30 seconds to fetch 70,000 inventory records, but by adding a composite index on the dictionary table, removing a UNION ALL, and adjusting view algorithms, the query time dropped to a few seconds, with a stored‑procedure alternative for flexible use.

Entity FrameworkStored ProcedureView Optimization
0 likes · 10 min read
How Adding Indexes Cut a 30‑Second MySQL View Query to 2 Seconds
DevOps
DevOps
Nov 23, 2015 · Backend Development

Deploying ASP.NET 5 RC1 on Linux with Kestrel and Entity Framework 7 on Alibaba Cloud

This article details the experience of upgrading a sample site to ASP.NET 5 RC1 on Linux, configuring Kestrel as the web server, adding SQL Server access via Entity Framework 7, handling Alibaba Cloud RDS settings, and discussing performance issues observed with Alibaba Cloud load balancing.

ASP.NETAlibaba CloudEntity Framework
0 likes · 6 min read
Deploying ASP.NET 5 RC1 on Linux with Kestrel and Entity Framework 7 on Alibaba Cloud