Skip to content

Commit

Permalink
Use more efficient algorithm for generating internal ids (#3595) (#3596)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsondergaard authored and kibertoad committed Dec 27, 2019
1 parent a613fe2 commit c277edb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/query/compiler.js
Expand Up @@ -70,7 +70,7 @@ assign(QueryCompiler.prototype, {
timeout: this.timeout,
cancelOnTimeout: this.cancelOnTimeout,
bindings: this.formatter.bindings || [],
__knexQueryUid: uuid.v4(),
__knexQueryUid: uuid.v1(),
};

Object.defineProperties(query, {
Expand Down
2 changes: 1 addition & 1 deletion lib/raw.js
Expand Up @@ -113,7 +113,7 @@ assign(Raw.prototype, {
);
}

obj.__knexQueryUid = uuid.v4();
obj.__knexQueryUid = uuid.v1();

return obj;
},
Expand Down

0 comments on commit c277edb

Please sign in to comment.