Menu
CSS is awesome { overflow: hidden; }
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Server-meltdown Memes
Posts tagged with Server-meltdown
We Will Process Only Last 1000 Files They Said
php
Programming
Databases
Backend
Algorithms
1 year ago
502.8K views
0 shares
When your manager says "just process the last 1000 files" but you're dealing with a PHP script that's about to iterate through 2 million files while comparing against a database of 1 million records. The script is literally pulling 1000 records with limit(1000) but then checking EACH of your 2 million files against those 1000 records with in_array() . That's a cool O(n²) operation that's going to take approximately checks notes forever to complete. Your server's CPU is already writing its resignation letter.
Today's picks
Deco Gear 34” Ultrawide Curved Monitor | 3440x1440 VA Display | 180Hz, 1ms MPRT, Adaptive Sync | 1500R, HDR Ready, 100% sRGB | Dual HDMI/DP, 21:9 Aspect Ratio, VESA Mount, Low Blue Light
Affiliate
$204.99
From Dog Photos To Digital Deities
AI
462.7K views
1 year ago
God's Plan.
Javascript
258.7K views
4 years ago