Pagefault.it

Appunti su sistemi, sviluppo, automazione, database, progettazione IT… e un po’ di gaming quando ne vale la pena. Scritto quando c’è qualcosa che vale la pena condividere.

Chi sono →

Queries to see rapidly what your MySql is doing NOW

When troubleshooting a slow or unresponsive MySQL instance, the first step is always the same: find out what is happening right now. These quick diagnostic queries use MySQL’s built-in SHOW STATUS and SHOW PROCESSLIST commands to surface the most useful information in seconds — no external tools required. 1. Active Processes and Running Queries SHOW…

SQL Jobs Monitoring: check last run datetime and duration

SQL Server Agent jobs are the backbone of automated database maintenance: backups, index rebuilds, integrity checks, ETL pipelines. Knowing at a glance when each job last ran and how long it took is essential for fast daily monitoring, especially when managing multiple instances. This query reads directly from the Agent system tables in msdb and…

How to make your databases smaller and faster: find unused indexes

Indexes are one of the most powerful performance tools in SQL Server — and one of the most overlooked sources of overhead. Every index you create must be maintained on every INSERT, UPDATE, and DELETE operation. Unused indexes cost you disk space, backup time, memory, and write performance, without providing any read benefit. Finding and…

Queries to see rapidly what your SQL Server is doing NOW

When troubleshooting performance issues on a SQL Server instance, the first step is always to understand what is happening right now: which queries are running, which sessions are blocking others, and where time is being spent waiting. These three T-SQL scripts give you an immediate picture of the current workload using Dynamic Management Views (DMVs)…

Usare algoritmi ricorsivi per sfogliare strutture ad albero

La ricorsione è uno degli strumenti più eleganti della programmazione: una funzione che richiama se stessa per risolvere istanze progressivamente più piccole di un problema. Per visitare strutture ad albero — come il filesystem, alberi di categorie o strutture XML — è spesso la soluzione più naturale ed efficiente. Questo articolo spiega il concetto e…

Achille, la Tartaruga e il dilemma di un certo Zenone…

Cosa succederebbe se un grande guerriero e una piccola tartaruga si sfidassero in una gara di velocità? Per Zenone di Elea, matematico e filosofo greco del V secolo a.C., il guerriero non raggiungerebbe mai la tartaruga — almeno secondo la logica del suo celebre paradosso. Eppure il buon senso ci dice il contrario. Ecco come…
🖥️

IT & Sysadmin

Sysadmin, database, infrastrutture, troubleshooting. Le cose che si fanno davvero sui sistemi.

Vai alla sezione →
🤖

AI & Dev

Sviluppo, automazione e intelligenza artificiale. Come cambiano il lavoro concreto, con esempi reali.

Vai alla sezione →
🎮

Gaming

Giochi, retrogaming, launcher. La parte che non riguarda il lavoro. Appassiona quanto lui.

Vai alla sezione →
🔧

Progetti

Cose costruite e usate davvero: Tempest, MovieMania, AST3ROIDX. Codice, idee, esperimenti.

Vai alla sezione →
📦

Archivio

Articoli che invecchiano bene. Restano accessibili, ma non sono in evidenza.

Vai alla sezione →

“This is for Everyone”

— Tim Berners-Lee