---
title: "#optimization articles | Hashnode"
description: "Explore 1,382 articles tagged #optimization on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/optimization"
---

Tag

# #optimization

1,382 posts · 110 followers

[spipaliya8](https://hashnode.com/@spipaliya) · [1d ago](https://hashnode.com/posts/ef-core-find-vs-firstordefault-what-s-the-difference/6afaa958914a94e8561ad5c4)

### [EF Core Find vs FirstOrDefault: What's the Difference?](https://sudhirpipaliya.hashnode.dev/ef-core-find-vs-firstordefault-what-s-the-difference?utm_source=hashnode&utm_medium=feed)

Understand EF Core Find vs FirstOrDefault, Primary Key lookups, local tracking, SQL queries, performance, and practical C# examples.

7 min read · [sudhirpipaliya.hashnode.dev](https://sudhirpipaliya.hashnode.dev/ef-core-find-vs-firstordefault-what-s-the-difference?utm_source=hashnode&utm_medium=feed)

[Siddhesh Sawant](https://hashnode.com/@siddheshsawant) · [6d ago](https://hashnode.com/posts/logistic-regression-from-first-principles/6af340fb4f49d259cfecfa43)

### [Logistic Regression from First Principles: Log-Odds, Likelihood and the Decision Threshold](https://siddheshsawant.hashnode.dev/logistic-regression-from-first-principles?utm_source=hashnode&utm_medium=feed)

Logistic regression derived step by step: sigmoid and log-odds, log loss and its gradient, gradient descent and Newton's method, and the decision threshold.

53 min read · [siddheshsawant.hashnode.dev](https://siddheshsawant.hashnode.dev/logistic-regression-from-first-principles?utm_source=hashnode&utm_medium=feed)

[Siddhesh Sawant](https://hashnode.com/@siddheshsawant) · [6d ago](https://hashnode.com/posts/linear-regression/6af33e7475a9ec13b893f93b)

### [Linear Regression from First Principles: Least Squares, Geometry and Gradient Descent](https://siddheshsawant.hashnode.dev/linear-regression?utm_source=hashnode&utm_medium=feed)

Fitting a straight line is the oldest trick in machine learning and still the one most worth understanding completely. This article builds linear regression from a five-point example to the normal equations, shows why least squares is a projection and a maximum-likelihood estimate at the same time, trains it with gradient descent you can steer, and then puts it to work on a real dataset to see where it holds up and where it breaks.

48 min read · [siddheshsawant.hashnode.dev](https://siddheshsawant.hashnode.dev/linear-regression?utm_source=hashnode&utm_medium=feed)

[ZyVOP](https://hashnode.com/@zyvop) · [Nov 6](https://hashnode.com/posts/your-docker-image-is-1-2-gb-here-s-how-to-get-it-under-100-mb-9oiu3/6aed832c9f1be253893733c2)

### [Your Docker Image Is 1.2 GB. Here's How to Get It Under 100 MB](https://blog.zyvop.com/your-docker-image-is-1-2-gb-here-s-how-to-get-it-under-100-mb-9oiu3?utm_source=hashnode&utm_medium=feed)

Slim bases, multi-stage builds, a .dockerignore and a few layer habits, plus a small tested checker that spots what's bloating your Dockerfile.

21 min read · [blog.zyvop.com](https://blog.zyvop.com/your-docker-image-is-1-2-gb-here-s-how-to-get-it-under-100-mb-9oiu3?utm_source=hashnode&utm_medium=feed)

[GeekyAnts](https://hashnode.com/@geekyants) · [Oct 23](https://hashnode.com/posts/taming-elasticsearch-at-scale/6adb3b65a144815fa93370cc)

### [Taming Elasticsearch at Scale](https://techblog.geekyants.com/taming-elasticsearch-at-scale?utm_source=hashnode&utm_medium=feed)

Optimize Elasticsearch for millions of records with better pagination, leaner payloads, efficient filtering, faster ingestion, and frontend techniques that keep search responsive with increase in data.

15 min read · [techblog.geekyants.com](https://techblog.geekyants.com/taming-elasticsearch-at-scale?utm_source=hashnode&utm_medium=feed)

[Asep Sayyad](https://hashnode.com/@asepsayyad007) · [Oct 20](https://hashnode.com/posts/the-mystery-of-the-dying-1gb-server/6ad6e09c6f6a7c12a1f657c7)

### [The Mystery of the Dying 1GB Server](https://asepsayyad007.hashnode.dev/the-mystery-of-the-dying-1gb-server?utm_source=hashnode&utm_medium=feed)

Why did our 1GB cloud server keep crashing at 2 AM? Discover how a hidden desktop GUI, zero swap, and unrotated Docker logs triggered OOM kernel panic

19 min read · [asepsayyad007.hashnode.dev](https://asepsayyad007.hashnode.dev/the-mystery-of-the-dying-1gb-server?utm_source=hashnode&utm_medium=feed)

[spipaliya8](https://hashnode.com/@spipaliya) · [Oct 12](https://hashnode.com/posts/ef-core-any-vs-count-which-one-is-better-for-existence-checks/6accd3086f31e7b96fe57492)

### [EF Core Any vs Count: Which One Is Better for Existence Checks?](https://sudhirpipaliya.hashnode.dev/ef-core-any-vs-count-which-one-is-better-for-existence-checks?utm_source=hashnode&utm_medium=feed)

Learn the difference between EF Core AnyAsync() and CountAsync() for existence checks, SQL translation, performance, indexes, and best practices.

6 min read · [sudhirpipaliya.hashnode.dev](https://sudhirpipaliya.hashnode.dev/ef-core-any-vs-count-which-one-is-better-for-existence-checks?utm_source=hashnode&utm_medium=feed)

[Michael Lohr](https://hashnode.com/@michidk) · [Oct 10](https://hashnode.com/posts/hello-world-contd/6aca3dccbd91b3bedad245f6)

### [Smallest "Hello World" continued](https://blog.lohr.dev/hello-world-contd?utm_source=hashnode&utm_medium=feed)

How I shrank Hello World to 153 bytes in assembly, Rust, and Zig, with complete ELF headers and a safer exit syscall.

13 min read · [blog.lohr.dev](https://blog.lohr.dev/hello-world-contd?utm_source=hashnode&utm_medium=feed)

[Ahmed Adawy](https://hashnode.com/@ai-architecture) · [Oct 4](https://hashnode.com/posts/demystifying-llm-serving-infrastructure-how-pagedattention-and-continuous-batching-scale-inference/6ac2bab3406b663da47be787)

### [Demystifying LLM Serving Infrastructure: How PagedAttention and Continuous Batching Scale Inference](https://adawy.hashnode.dev/demystifying-llm-serving-infrastructure-how-pagedattention-and-continuous-batching-scale-inference?utm_source=hashnode&utm_medium=feed)

Artificial Intelligence, LLM, Machine Learning Infrastructure, و Pytho Demystifying https://leanpub.com/aisystemsengineeringfromprototypetoproduction

5 min read · [adawy.hashnode.dev](https://adawy.hashnode.dev/demystifying-llm-serving-infrastructure-how-pagedattention-and-continuous-batching-scale-inference?utm_source=hashnode&utm_medium=feed)

[Ahmed Adawy](https://hashnode.com/@ai-architecture) · [Oct 2](https://hashnode.com/posts/llm-inference-engineering-overcoming-the-kv-cache-bottleneck-and-maximizing-production-throughput/6abfff77746d63336e2beba1)

### [LLM Inference Engineering: Overcoming the KV-Cache Bottleneck and Maximizing Production Throughput](https://adawy.hashnode.dev/llm-inference-engineering-overcoming-the-kv-cache-bottleneck-and-maximizing-production-throughput?utm_source=hashnode&utm_medium=feed)

LLM Engineering AI Infrastructure Python GPU Optimization Performance Engineering Machine https://leanpub.com/b/thegenerativeaillmengineeringbundle

3 min read · [adawy.hashnode.dev](https://adawy.hashnode.dev/llm-inference-engineering-overcoming-the-kv-cache-bottleneck-and-maximizing-production-throughput?utm_source=hashnode&utm_medium=feed)
