Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
CBenoit committed Nov 14, 2024
1 parent 770222f commit 5927030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/job-queue-libsql/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ impl JobQueue for LibSqlJobQueue {
(id, instance_id, failed_attempts, status, name, def)
VALUES (:id, :instance_id, :failed_attempts, :status, :name, jsonb(:def))";

// UUID v4 provides no other information than randomness which cause fragmentation.
// Reduce index fragmentation by using ULID instead.
// UUID v4 only provides randomness, which leads to fragmentation.
// We use ULID instead to reduce index fragmentation.
// https://github.com/ulid/spec
let id = Uuid::from(Ulid::new());

Expand Down

0 comments on commit 5927030

Please sign in to comment.