Welcome to the uuidv7-vs-uuidv4-sql
project! This experiment aims to benchmark the insertion time of millions of records into MySQL using two different UUID versions: UUIDv7 and UUIDv4. The project leverages both Node.js and Go programming languages for the experiment.
More info can be found @ https://medium.com/@rimonadel01/why-uuid7-is-better-than-uuid4-as-clustered-index-edb02bf70056
- Node Version: 18 or later
- Go Version: 1.21.5 or later
- Docker: Installed and running
- Docker Compose: Installed and available
git clone https://github.com/RimonTawadrous/uuidv7-vs-uuidv4-sql.git
cd uuidv7-vs-uuidv4-sql
cd nodejs-single-thread-experiment
npm install
node experiment.js
node experiment.js
cd go-multithread-experiment
go mod download
go build main.go && ./main --if
./main
./main