Skip to content

Instantly share code, notes, and snippets.

View DI-Tony-Reed's full-sized avatar

Tony Reed DI-Tony-Reed

View GitHub Profile
@DI-Tony-Reed
DI-Tony-Reed / db_normalization_performance.sql
Last active October 27, 2025 16:22
DB Normalization performance vs JSON columns
/*
Demonstrates the performance difference of using normalized DB tables vs JSON/CSV in a single column to store data
Assumes you are using MySQL 8.x+ locally
https://dev.mysql.com/blog-archive/mysql-explain-analyze/
*/
CREATE TABLE users_test_not_normalized
(
id int PRIMARY KEY,
name varchar(100),
@DI-Tony-Reed
DI-Tony-Reed / urlChecker.go
Last active December 5, 2024 16:13
A Go script that will call slice of endpoints x number of times sequentially and show the average time to a response
package main
import (
"fmt"
"net/http"
"time"
)
const numberOfRequestsPerURL int = 10